Skip to content

Conversation

@paurav-munshi
Copy link
Contributor

Fixes #66

Functionality Covered

  • Validation of client id & response type
  • Generate authorization code
  • Save Authorization
  • Redirect to client redirect uri
  • Send error in http response
  • Send error as query params in redirect uri

Validations covered

  • Client Id should be mandatory
  • Client Id should be registered
  • Client Id should be configured with Authorization grant type
  • Response type is mandaotry
  • Response type should be code

Functionality Covered
-------------------------

- Validation of client id & response type
- Generate authorization code
- Save Authorization
- Redirect to client redirect uri
- Send error in http response
- Send error as query params in redirect uri

Validations covered
-------------------

- Client Id should be mandatory
- Client Id should be registered
- Client Id should be configured with Authorization grant type
- Response type is mandaotry
- Response type should be code
paurav-munshi and others added 12 commits April 30, 2020 00:31
- On successfull redirect code was not being sent in the Redirect URL
- validations methods were private, so made them protected
- Adding key constants for issues time and code used flag in
OAuth2Authorization
- Changing error code when Authorization grant is not supported by
client
- Change in error method for Unauthorized client
- Corrected the validation for AuthorizationGrantType check
- Adding attributes Issue time and Code use flag in attributes map
- Adding state to redirect uri for both success and failure
- Changing method name from get to set as it was wrongly used
- Adding a basic test class which will be enhanced more
- Added a UUID based Authorization Code generator
- Added an Ant Path request matcher to check endpoint validity
- Added a new OAuth2 authorization request converter
- Use DefaultRedirectStrategy from Spring
- Added a check for user authentication present and authenticated
- Added check for respone type parameter validity in request
- Added check for redirect uri validity in request
- Replaced StringBuilder with UriComponentsBuilder
- Added JUnit tests for validation in section 4.1.1 of the RFC specs
- Added a class which will be responsible for holding sever level
messages as constants
Functionality Covered
-------------------------

- Validation of client id & response type
- Generate authorization code
- Save Authorization
- Redirect to client redirect uri
- Send error in http response
- Send error as query params in redirect uri

Validations covered
-------------------

- Client Id should be mandatory
- Client Id should be registered
- Client Id should be configured with Authorization grant type
- Response type is mandaotry
- Response type should be code
- On successfull redirect code was not being sent in the Redirect URL
- validations methods were private, so made them protected
- Adding key constants for issues time and code used flag in
OAuth2Authorization
- Changing error code when Authorization grant is not supported by
client
- Change in error method for Unauthorized client
- Corrected the validation for AuthorizationGrantType check
- Adding attributes Issue time and Code use flag in attributes map
- Adding state to redirect uri for both success and failure
- Changing method name from get to set as it was wrongly used
- Adding a basic test class which will be enhanced more
- Added a UUID based Authorization Code generator
- Added an Ant Path request matcher to check endpoint validity
- Added a new OAuth2 authorization request converter
- Use DefaultRedirectStrategy from Spring
- Added a check for user authentication present and authenticated
- Added check for respone type parameter validity in request
- Added check for redirect uri validity in request
- Replaced StringBuilder with UriComponentsBuilder
- Added JUnit tests for validation in section 4.1.1 of the RFC specs
- Added a class which will be responsible for holding sever level
messages as constants
- Added space after commans where ever applicable
- Removed trailing whilte spaces
- Added white space after if condition
- Added headers before package declaration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Authorization Endpoint

2 participants