Authorization URL for a proxy

Hello all

We use Apigee on cloud and I am new to the Apigee community, so my question may be very basic. I have a proxy created in Apigee for one for our REST API.

The proxy uses oAuth2.0 policy and I have the client ID and secrets created to access the policy. From postman I am able to call the proxy and get a successful response.

Now I want to use the proxy in Microsoft powerapps. In powerapps, the configuration to use the proxy with oAuth2.0 authentication requires the following details.

Client Id, Client Secret, Token URL, Refresh URL and Authorization URL.

I have all the details except Authorization URL. Am I missing something? Any help is appreciated. Thank you in advance.

0 7 532
7 REPLIES 7

Not applicable

Do you mean Authorization URL by redirect URL? which type of OAuth grant type are you using?

Thank you for the response. I am using Client_Credentials grant type. No I meant Authorization URL, there is a separate option for redirect URL. See below screen print for the required fields for Authentication in powerapps

9007-oauth-fields.png

Thanks

Hi @Gopinath Mani,

The authorize URL will be the oauth first url which gives you the access token in case of client credential grant type. In your case, it should be similar to http://yourwebsite.com/oauth/accesstoken?grant_type=client_credentials

@Ravindra Singh Thank you for the response. Yes. I tried using the accesstoken URL got the same failure. The powerapps connector is expecting a authorization URL like the one below (oAuth microsoft CRM API's authorization URL and Access token URL)

Authorization URL -

https://login.microsoftonline.com/common/oauth2/authorize?resource=https://orgXXXXXXX.api.crm.dynami...

Access token URL -

https://login.microsoftonline.com/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX/oauth2/token

Thanks

Gopi

Hi @Gopinath Mani,

Were you able to fix it? If not could you please provide me how I can replicate this on powerapps? I can try to help you.

Hi @Ravindra Singh , Not fixed. To replicate, try creating a Custom Connector in powerapps for a Apigee proxy authenticated using oAuth2.0

Hi @Gopinath Mani,

I think I understood your problem. the powerapps needs authorization grant type as redirects you on your custom consent app which will be integrated with your authorization server. I configured it redirected me to my custom consent app.