Martynas Tumas
Martynas Tumas

Reputation: 256

php oauth2 server Authorization Code Grant

I'm trying to create oauth2 server with php by this https://itnext.io/an-oauth-2-0-introduction-for-beginners-6e386b19f7a9 (Authorization Code Grant)

Everything works fine, I get access_token, but one thing is not clear - how does Resourse server identify a user if access_token is created without users credentials?

Upvotes: 0

Views: 132

Answers (1)

GrenierJ
GrenierJ

Reputation: 1140

Your Resource server doesn't need the user credentials. It only need to check that de access_token is valid and them will do his treatment.

The access_token should contain some informations that will idendify the user.

For more details about Resource_server inside oauth2 : link

Upvotes: 1

Related Questions