Hi APEX Community,
I am trying to integrate Azure AD B2C in my APEX app and I found few articles
All are working fine but the only issue I have is they just accept any Microsoft login and not my tenant user's login. So, to fix that I used the following URLs in my authentication scheme
- https://{tenant_name}.b2clogin.com/{tenant_name}.onmicrosoft.com/{user_flow_name}/oauth2/v2.0/authorize
- https://{tenant_name}.b2clogin.com/{tenant_name}.onmicrosoft.com/{user_flow_name}/oauth2/v2.0/token
After adding the above as Authorization endpoint URL and Token endpoint URL, it accepts my tenant user's login but I could not fetch their user details and due to that could not proceed with the login. With this URL, we can pass response_type=code+id_token where id_token will have all the user's details containing name, email, address, etc but in APEX, I can't find any way to add response_type, APEX automatically adds response_type = code.
I get the following error in APEX debug messages

So, could anyone suggest what should I check further to accomplish my requirement?
Thanks