Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to do Azure AD B2C sign in in oracle apex?

Kinjan BhavsarMay 3 2023 — edited May 3 2023

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

B2C_error.png

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

Thanks

This post has been answered by Kinjan Bhavsar on May 4 2023
Jump to Answer
Comments
Post Details
Added on May 3 2023
1 comment
690 views