This project implements an OAuth2 authorization server using Spring Boot 3.2.0, providing secure authentication and authorization mechanisms for client applications. It stores OAuth2 client details and user credentials in a PostgreSQL database.
-
Authorization Endpoint:
- URL:
http://localhost:8080/oauth2/authorize - Method: GET
- Parameters:
response_type,client_id,scope,redirect_uri,code_challenge,code_challenge_method - Description: Initiates the OAuth2 authorization process.
- URL:
-
OpenID Configuration Endpoint:
- URL:
http://localhost:8080/.well-known/openid-configuration - Method: GET
- Description: Provides metadata about the authorization server.
- URL:
-
Token Endpoint:
- URL:
http://localhost:8080/oauth2/token - Method: POST
- Parameters:
client_id,grant_type,redirect_uri,code,code_verifier - Description: Exchanges authorization code for an access token.
- URL:
-
Token Introspection Endpoint:
- URL:
http://localhost:8080/oauth2/introspect - Method: POST
- Parameters:
token - Description: Verifies the validity and scope of an access token.
- URL:
- Obtain authorization by visiting the authorization URL with required parameters.
- Exchange authorization code for an access token using the token endpoint.
- Introspect the access token for validity and scope using the introspection endpoint.
Ensure proper authentication and authorization mechanisms are in place to secure endpoints and sensitive data.