Baz
Baz

Reputation: 13175

What oauth 2.0 endpoint is used to validate a bearer token

I have an oauth 2 server implemented using django oauth2 provider.

I am implementing the client credentials flow in an api.

The client app POSTs to the oauth server's /token/ endpoint to get the access token. That is then sent to my api in the header. What endpoint should the api then call on the oauth server to validate this token, when using a back channel?

enter image description here

Upvotes: 2

Views: 150

Answers (2)

mirodil
mirodil

Reputation: 439

When using django-restframework you can use django-rest-auth.

Upvotes: 0

Sujay S Badge
Sujay S Badge

Reputation: 153

There is an easy solution to your problem implement django-allauth every thing is taken care.

Upvotes: 0

Related Questions