-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autodesk v2 #760
Comments
I'm not sure this is really a bug as it's a major version upgrade to the Autodesk API. If there's changes in it that need the provider to be changed to support it, then that's more of a feature request, IMHO. Does it work if you set We already default it to AspNet.Security.OAuth.Providers/src/AspNet.Security.OAuth.Xumm/XummAuthenticationOptions.cs Line 27 in f8e1386
|
I figured this out. In the code exchange step, .NET sends client Id & secret in the message body as in the following link: From Autodesk's perspective, they expect client Id & secret to be submitted as a header if PKCE is off and client id in message body if PKCE is on as in the following link: I can fix this by overriding |
This seems reasonable to me - we have a number of providers that override |
Describe the bug
Autodesk published v2 for their OAuth infrastructure as shown here: https://aps.autodesk.com/en/docs/oauth/v2/reference/http/
I tried to update the provider in this tool here: https://github.com/EMostafaAli/AspNet.Security.OAuth.Providers/tree/autodesk_v2
It is a simple update, only changing the endpoints URL. However, when I tried to test I got the following error:
Exception: OAuth token endpoint failure: invalid_request;Description=The request is missing a required parameter 'code_verifier'.
I know for a fact that Autodesk application has PKCE set to false (for web apps) and as far as I know 'code_verifier' is related to PKCE.
Steps To reproduce
Expected behaviour
Authorization should work.
Actual behaviour
The authentication fails with the following:
System information
.NET SDK:
Version: 7.0.103
Commit: 276c71d299
The text was updated successfully, but these errors were encountered: