I am trying to allow users to access some resources from my Django REST API using Oauth2.
Most of the answers about Oauth2 and the API are related to the provider providing the API.
But I plan to split the Oauth2 provider with many REST APIs, and I cannot figure out how to consume (not how to provide Oauth2).
I have no idea how a user can log in to the SSO provider, and then transfer their token to my API, which should authenticate users against my provider (returning his information, mainly authorization).
Does anyone know how to consume Oauth2 from a Django REST infrastructure?
Picture:
[User] → [My API] ↔ [Oauth2 provider (with django-oauth-provider)] ↔ [Active Directory / anything]
source share