Closed Mateusz512 closed 4 years ago
Add security example
Example project should include some examples on security and authorization
localhost:8092/api/public
localhost:8092/api/secure/basic
john
s3cr3t
localhost:8092/api/secure/jwt
HS256
M0NTY3ODkwIiwibmFtZSI6
localhost:8092/api/secure/login
localhost:8092/api/secure/oauth2
I hereby agree to the terms of the Knot.x Contributor License Agreement.
Description
Add security example
Motivation and Context
Example project should include some examples on security and authorization
Upgrade notes (if appropriate)
Endpoints:
localhost:8092/api/public
public endpoint without securitylocalhost:8092/api/secure/basic
endpoint protected with Basic Authjohn
passwords3cr3t
localhost:8092/api/secure/jwt
endpoint protected with JWTHS256
:M0NTY3ODkwIiwibmFtZSI6
localhost:8092/api/secure/login
endpoint implementing Authorization Code flow of OAuth2localhost:8092/api/secure/oauth2
endpoint expecting a redirect from Google Account consent page as part of OAuth2Types of changes
Checklist:
I hereby agree to the terms of the Knot.x Contributor License Agreement.