Create a Autentication with Token Bearer and BODY configuration

Hello Community,

I would like some information about how to create a connection using a Bearer token to another API passing some configuration into BODY in .json format.
Is it possible with OAuth 2.0?

Thanks in advance!

Alisson T. Bucchi
Alliance Assistant & API Dev at Logicalis Portugal

You can use the HTTP module “Make an OAuth 2.0 request”.

For more information, see https://www.make.com/en/help/tools/http

3 Likes

Hey @Alisson_Bucchi - I just did this last week for a demo I was building out. Here are a few screenshots that may help.

First you’ll need to submit the Oauth request to get your bearer token. Using the HTTP request module, here is an example of what that looks like. Note that the “Credentials” are the two Oauth keys that my backend provided me that have been saved into a Make credential.

This request should get your bearer token back that you can use in subsequent requests by including the JSON body and the bearer token as a header value in the post request sent by the http module again.

Regardless of the app you’re working with, they all pretty much handle bearer tokens the same so this approach should be pretty universal. If you’re still looking for more help or have additional questions, feel free to respond here or reach out directly!

1 Like

Hello @workflowsy , thanks for your previous response!

By the way, I didn´t understand how to create these “Credentials” between Cisco and Make into a Make credential. I would like more details about this, if possible, for sure!

Wich information I need to insert into Authorize URI and Token URI because when we create a access I only have client ID and client secret!

Thank you so much for your attention and participation.
Alisson T. Bucchi
Alliances Analyst & API Dev at Logicalis Portugal

If you only have a Client ID and Client Secret, why not just use the Cisco integration?

If this is not the right external service, you can also suggest for it to be made in the Idea exchange. Don’t forget to search for it first, just in case someone already suggested it, so that you don’t end up creating a duplicate.
Screenshot_2024-01-17_130153

3 Likes

Hello Samliew,

I’m using another CISCO tool, it’s not Webex. It’s a CISCO API Console, Make doesn’t have an integrated module like Webex.
Here is an image to explain about these APIs.

Thanks for your response!

Is it possible to create the same kind of connection?

Alisson T. Bucchi
Alliances Analyst & API Dev at Logicalis Portugal

1 Like

Hi Alisson,

the Authorize URI should be this one: https://cloudsso.cisco.com/as/authorization.oauth2
and this should be the token uri: https://cloudsso.cisco.com/as/token.oauth2

3 Likes

Hey @Alisson_Bucchi - it looks like if you go to the my apps and keys, you should have the ability there to create / request a set of api keys (credentials) that could then be used in your flow. Is that the case?

1 Like

Hello @workflowsy and @samliew,

Thanks for your attention!

I’m creating a method to access Cisco API with 2 steps: first is HTTP request to obtain a Token and the second is obtain the value from Cisco API through the Token with another HTTP request. Here a sceenshot of the scenario:

By the way, I have sucess to obtain and extract the Token from HTTP request data, however I have problems to access API information with the token in the final step!

Thanks in advance!

Alisson T. Bucchi
Alliances Analyst & API Dev at Logicalis Portugal

@Alisson_Bucchi - could you provide some more information around the error / problem you’re having with the HTTP request you’re stuck on? It sounds like we’re close. I’d love to try and get you to a successful outcome!

3 Likes

Hello @workflowsy

I am writing to inform you that the issue has been resolved with the help of Cisco Assistants.
Thank you for being so cooperative.

Best Regards,

Alisson T. Bucchi
Alliances Analyst & API Dev at Logicalis Portugal

3 Likes

Of course! I’m glad you figured it out! If you run into any additional issues just let me know, always happy to help!

3 Likes