Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.69k stars 5.12k forks source link

Programmatically generate the consent code for credential manager for APIM #30095

Open sanjaydatasciencedojo opened 3 months ago

sanjaydatasciencedojo commented 3 months ago

API Spec link

https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c37a507e520767c5bafde6d8fbf9aabef6316fdb/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2022-09-01-preview/examples/ApiManagementPostAuthorizationConfirmConsentCodeRequest.json

API Spec version

2022-08-01

Question/Query

Is there a way to programmatically generate the consent code? There is an SDK to confirm once the user visits the page. Link to the page: https://learn.microsoft.com/en-us/rest/api/apimanagement/authorization/confirm-consent-code?view=rest-apimanagement-2022-08-01&tabs=Python

client. authorization.confirm_consent_code( resource_group_name="rg1", service_name="apimService1", authorization_provider_id="oauthcode", authorization_id="authz1", parameters={"consentCode": "theconsentcode"}, )

Describe the solution you'd like We are looking for—a way for users to skip consent without leaving our site. Our site is already configured as an OAuth provider to the credential manager.

Additional context We want to avoid the screen when authorizing credential managers and using the authorization code method.

image image

Environment

No response

sanjaydatasciencedojo commented 3 months ago

Hi @v-jiaodi, this is a blocker for us. Is there any update on this?

v-jiaodi commented 3 months ago

@solankisamir Please help take a look, thanks.

sanjaydatasciencedojo commented 3 months ago

@solankisamir, any update on this? This has been blocker for us.

sanjaydatasciencedojo commented 2 months ago

@v-jiaodi and @solankisamir, we are still waiting for the response.