0
I am using OpenID Connect in Keycloak as an authentication solution and I’ve just encountered the following scenario.
- Client
Asends an authorisation request to the Authorization server and provideredirect_urlof clientBin that request. - Authorization server authenticate the user and redirect the user to the provided
redirect_url(which is for clientB) withauthentication_code. - Client
Bcommunicates with Authorization server with its ownclient_idand secret and takes its token.
I want to know why OpenID Connect has allowed this process, is it a normal thing for a client to initiate authentication for another client? Why the issued authentication_code is not bound to the client who has initiated the authentication and why it the authentication_code can be used by other client with other client_id ?
Note: I know that validity of redirection_url will be checked in that process but I want to know why authorization code is not bound to client_id itself.