cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MarkData8
Advocate I
Advocate I

Using OAuth with password grant type

I have an API I am trying to build a connector for. The API uses OAuth, but requires the password grant type. I can’t see an option for this when setting up the security settings on the connector.

I can set up the connector as having no authentication and then create an action that calls the token endpoint and I successfully get the access token back, but I then can’t use that to set the Authorization header on subsequent actions (and my username and password would become part of the flow as well, which isn’t great)

Is there any other way of approaching this?
3 REPLIES 3
v-yamao-msft
Community Support
Community Support

Hi @MarkData8 ,

 

From the doc on creating a custom connector, it seems that there is no option for requiring the password grant type:

https://docs.microsoft.com/en-us/connectors/custom-connectors/define-blank#specify-authentication-ty...

 

I will help do more research on this issue and then back to you.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Has there been an update to this issue. I am also working on building a Custom Connector for an API that requires the grant type to be set. It seems to be a common requirement on APIs.

Bump.  I am having the same issue.  I need to pass a "type" parameter to my authorization URL.  I cannot get past the authorization stage for my custom connector without this.  Cat Sad

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (60,730)