Description
API Spec link
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.
Environment
No response