Reputation: 1339
Our OAuth server will be separate from the servers handling actual protected resources, in essence sitting in the middle of a few different systems that each hold protected resources.
For example the login page will be in one of the systems.
What should be the procedure when an authenticated user in one system goes to the other system? Since it is authenticated it should just go through, but what does OAuth do, and ask for, in this scenario?
Thank you
Upvotes: 1
Views: 164
Reputation: 8963
OAuth doesn't explicitly say anything about this scenario. But from an API design perspective I would:
http://api.example.com/service1
, http://api.example.com/service2
etc.If you go for having transparent "separate systems", such as http://service1.example.com
and http://service2.example.com
you can. But make sure to have ONE domain for handling the entire OAuth flow and that each of the API endpoints is capable of handling OAuth requests and have access to the necessary user and token databases to verify requests.
To give you an example, you can:
http://service1.example.com
.service1
has access to the user and token databases you can verify the request immediately.Or my alternative (which I think is better):
Upvotes: 1