web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How can I create a cus...
Power Apps
Answered

How can I create a custom connector for a WebApi protected not by Azure AD but by ADB2C?

(0) ShareShare
ReportReport
Posted on by 38

All the examples I have seen of how to create a custom connector to a WebApi protected by Azure are for Azure Active Directory, whereas many external facing APIs are protected by ADB2C (with "who can access this API?" being set to "Accounts in any identity provider or organizational directory (for authenticating users with user flows)").

 

How can I create a custom connector for such an API?  How do I set the Security tab when creating the connector, for example?

 

I'm sure lots of others have this use case.

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    patrick4 Profile Picture
    38 on at

    Solution

    I managed to solve this via settings like the following:

     

    Identity Provider: Generic Oauth2

    Client ID: [put the appid of your registered app here]

    Client secret: [put the corresponding client secret here]

    Authorization URL: [put the relevant url of the relevant desired sign in policy here, e.g. NB prefix this with https:// ]  cadsdevsm.b2clogin.com/cadsdevsm.onmicrosoft.com/B2C_1_SupportConsoleSignIn/oauth2/v2.0/authorize

    Token URL: https://cadsdevsm.b2clogin.com/cadsdevsm.onmicrosoft.com/B2C_1_SupportConsoleSignIn/oauth2/v2.0/token

    Refresh URL: https://cadsdevsm.b2clogin.com/cadsdevsm.onmicrosoft.com/B2C_1_SupportConsoleSignIn/oauth2/v2.0/authorize

    Scope: [put the scope of your API here] https://cadsdevsm.onmicrosoft.com/TestSMCoreAPI/standard

    Redirect URL: [this seems to have been set automatically by the system after saving the custom connector] https://global.consent.azure-apim.net/redirect

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard