Let's say a new application X
is an Oauth2 client and allows it's user to signup/login with other Oauth2 providers like Google. So a user U
signs up using Google and regularly logins using Google to the application X
.
But what happens if X
is also an Oauth2 provider? That would be a bad experience for U
in applications that allows login with X
since the user would be redirected multiple times until the final provider (Google) is reached. And theoretically, the applications that allowed login with X
could also become a provider in future. So the number of redirections are not strictly limited to 2.
So is it the case that an application can not be Oauth2 provider and Oauth2 client at the same time?