Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Convert token request: from Basic Authentication to Oauth2 with grant type client credentials

Not applicable

Hi

First of all, I somewhat new to the API world so please bear with me.

I am in a situation where I need to try and convert a basic authentication token request to a Oauth2 token request with grant type client credentials. The overall idea is to input client ID and client secret as username and password in the basic authentication and then convert it as intended for a oauth2 (grant type client credential) token request, and get a access token back.


Background info:

I working on a project where an hybrid iOS app is connected to the cloud. The cloud provides a feature that enables a centralize place to store http's endpoint and credentials that is used within the app, so that is not stored in the code. The app has a sync function with the cloud which enables it to see all specified endpoints in the cloud.

So now we wish to integrate a third party API data sources where we wish to declare the endpoints to this data resource through the cloud. The data source uses Oauth2 authentication with grant type client credentials. The cloud does unfortunate not provide the ability to get a access token and send it along to the app through the Oauth2 protocol. But it does with Basic authentication, so that why I wish to try to convert the request here in apigee.

It is important that endpoints and credentials are stored in the cloud and not on the app. The app is allowed to handle a access token.


I hope somebody can provide me with some help, or alternative insight.

0 2 6,881
2 REPLIES 2