Skip to Content
0
Dec 14, 2022 at 01:16 PM

Code for /token and /userinfo endpoints in an SAP CDC as Openid Connect RP flow

202 Views

Hi Experts,

We have set up an SSO flow between CIPM/JanRain and SMH(CDC based website) using an OIDC flow. In this case, CIPM is OP and CDC is RP.

Currently, user is redirected successfully back to the SMH (with an authorization code) after authenticating in CIPM. However, the user is redirected to the login screen even though a session has already been established.

SMH developers need to write a logic in the backend to recognize that the user has already been authenticated in this case and they need to make additional calls to the /token and /userinfo endpoints in the backend as part of the OIDC flow for the SMH to verify the user logging in.

Could you please let me know what lines of code SMH developers need to write for /token and /userinfo endpoints to get the access_token and scops in response respectively?

Thanks and regards,

Kajol