Azure / Azure/azure-rest-api-specs

[BUG] `Microsoft.ApiManagement service/authorizationServers` support for `authorizationCodeWithPkce`

Open Beginner friendly
#34,711 0 comments 1 reaction 0 assignees View on GitHub
API Management bug customer-reported Mgmt question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
6k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

### API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2024-05-01/definitions.json#L1743

### API Spec version

2024-05-01

### Describe the bug

To enable support for "Authorization Code + PKCE", the api spec on `grantTypes` should add support for `authorizationCodeWithPkce`. This has been supported by the Azure Portal for quite some time already.

### Expected behavior

Should be able to set grant type "Authorization Code + PKCE" on the OAuth 2.0 client for the APIM Developer Portal

### Actual behavior

grant type `authorizationCodeWithPkce` is not supported by the spec yet

### Reproduction Steps

Trying to set this grant type via Terraform, getting the following error:
![Image](https://github.com/user-attachments/assets/c23fc313-dff9-40eb-a8cb-885a7b98c0b7)

### Environment

Terraform: v1.12.0
AzureRM provider: v4.28.0

Contributor guide

Open the contributing guide

Research direction

Start at specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2024-05-01/definitions.json around line 1743 and inspect the grantTypes definition. Confirm how existing grant types are represented and update the specification so authorizationCodeWithPkce is accepted. Done means the API spec supports setting Authorization Code + PKCE for an APIM OAuth 2.0 client.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi, terraform
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.