cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
msj
Regular Visitor

Custom connector to connect to API using client_credentials grant type

Would like to connect to API using client_credentials grant type.
Is 'client_credentials' grant type supported for LogicApp / flow connector?
Connector builder converts this to "flow": "accessCode" which will make it

grant_type=authorization_code



security defn in swagger file is as follows. 

 

  "securityDefinitions": {
    "oauth2_auth": {
      "flow": "application",
      "scopes": {
        "file.*": "file.*",
        "integration.*": "integration.*"
      },
      "tokenUrl": "https://example.com/token",
      "type": "oauth2"
    }
  },

 

2 REPLIES 2
RookieI
Resolver I
Resolver I

 

 

Maybe you can find the answer from these documents:

https://docs.microsoft.com/en-us/connectors/custom-connectors/

Hi @msj , I am wondering if you have found any solution to this? 

I am trying to consume an on-premise API using "On Premise data Gateway" and "Custom Logic App Connector" but it seems it does not support client_credentials grant type 

 

I tried below approach too but failed:

Approach: Get Oauth Token separately by calling the onPremise token URL and then make actual API call with token in Authorization header.

Approach result: "Custom Logic App connector" does not allow to define "Authorization" key in header

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (1,363)