We are in the process of creating a plugin that requires authentication via an existing Azure B2C tenant. We are encountering an issue AADB2C99059, which states that the provided request must include a code_challenge. How should I modify the ChatGPT plugin to incorporate the code_challenge and code_challenge_method?
Below is the current authorization configuration:
"auth": {
"type": "oauth",
"client_url": "https://[ExampleTenant].b2clogin.com/[ExampleTenant].onmicrosoft.com/B2C_1_SignUpSignIn/oauth2/v2.0/authorize",
"scope": "https://[ExampleTenant].onmicrosoft.com/b7f380c7-abc2-4b7c-91b7-10c91b451aef/read",
"authorization_url": "https://[ExampleTenant].b2clogin.com/[ExampleTenant].onmicrosoft.com/B2C_1_SignUpSignIn/oauth2/v2.0/token",
"authorization_content_type": "application/x-www-form-urlencoded",
"verification_tokens": {
"openai": "efa132d5bb66819b50aeb4cc70e12bd7"
}
}
The related documentation at this URL: Authorization code flow - Azure Active Directory B2C | Microsoft Learn