cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
devdoc
Level: Powered On

custom connector secure using Azure Active Directory and OAuth2

I have a custom connector that needs to use Azure active directory to do oauth2 to secure it. Is there any documentation or examples I can use to set the API up correctly in Azure and what the connector's security tab page also needs?  I have not found any good examples to try to duplicate.  I need to secure the custom rest api.

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: custom connector secure using Azure Active Directory and OAuth2

Hi @devdoc 

 

Yes you can create the connector by following the below article:
 
Based on this article, you can create both backend and client application registrations, once this is configured, create a custom connector from blank and update your security settings as:
 
Authentication type: OAuth 2.0
Identity Provider: Azure Active Directory
Client ID: Client ID for Client App Registration
Client Secret: Client Secret for Client App Registration
Resource URL: Client ID fot Backend App Registration.
 
Lastly, update the rediect url created in your custom connector, into your client Application registration, remove the existing value and add this newly created one, this is same for all connectors and it is: https://global.consent.azure-apim.net/redirect
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: custom connector secure using Azure Active Directory and OAuth2

Hi @devdoc 

 

Yes you can create the connector by following the below article:
 
Based on this article, you can create both backend and client application registrations, once this is configured, create a custom connector from blank and update your security settings as:
 
Authentication type: OAuth 2.0
Identity Provider: Azure Active Directory
Client ID: Client ID for Client App Registration
Client Secret: Client Secret for Client App Registration
Resource URL: Client ID fot Backend App Registration.
 
Lastly, update the rediect url created in your custom connector, into your client Application registration, remove the existing value and add this newly created one, this is same for all connectors and it is: https://global.consent.azure-apim.net/redirect
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,185)