Skip to content

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

Open
@sanjaypant99

Description

@sanjaypant99

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

Metadata

Metadata

Assignees

Labels

API ManagementMgmtThis issue is related to a management-plane library.Service AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions