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
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

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (6,405)