HappYness-Project / Happy-EventSourcing

Event sourcing
10 stars 1 forks source link

Understand OAuth 2.0 for Identity Service #91

Open hyunbin7303 opened 1 year ago

hyunbin7303 commented 1 year ago

Our application uses Identity service for creating a user and login. For the Identity service, we use OAuth 2.0 but there is no specific documentation how we are going to use it.

OAuth 2.0

What is the Resource Owner?

Your application's end user that grants permission to access the resource server with an access token.

What is the Resource Server?

The resource server handles authenticated requests after the application has obtained an access token.

User Agent?

Mobile Phone, Native application, TV Etc . something that runs in client.

Verifying scope.

The resource server needs to know the list of scopes that are associated with the access token.

Authorization server

Endpoint should be AUthorization and Token

Authorization Code

The authorization endpoint returns only the authorization code. It is used for obtaining an ID token and optional OAuth access token from the token endpoint.