OAuth2 Authorization Server is the component responsible for authenticating the resource owner (user), obtaining their authorization, and issuing access tokens to clients. Examples include Google, GitHub, and Facebook's authentication services.
// Authorization Endpoint - user-facing
GET /authorize
?response_type=code
&client_id=...
&redirect_uri=...
&scope=...
&state=...
// Token Endpoint - machine-to-machine
POST /token
grant_type=authorization_code
&code=...
&client_id=...
&client_secret=...
// Token Introspection (optional)
POST /introspect
token=...
// Token Revocation (optional)
POST /revoke
token=...