[Answer]-Django OAuth2 provider and resources on different servers?

1👍

It depends on the oauth2 flow you’re using. It seems like you’re using authentication code.

In that case:

service.com sends the browser to provider.com for user authentication (uri contains service.com client_id and redirect_uri)
User authenticates on provider.com, then the browser is redirected to service.com’s redirect_uri with a ?code parameter.
On your server side, handle this code parameter and ask for a token with it.

See https://aaronparecki.com/articles/2012/07/29/1/oauth2-simplified#web-server-apps

Leave a comment