-
Notifications
You must be signed in to change notification settings - Fork 328
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
WwwAuthenticateParameters fails to create response from headers #3026
Comments
Hi @Trimack - can you please provide an example header that this helper fails on? We do have some unit tests around it, and even integration tests, so I find it hard to believe that it |
I just did in what I believe to be a related issue in #3027 (comment). I honestly do not understand why this doesn't work and how is the property supposed to work but here's a screenshot from the VS: |
Is there a public URI I can access to get this 401 + authenticate header? |
An example URI is |
So I am able to reproduce this and it Looks like there are some additional configurations that are needed in order for us ot access the data in this header. Not sure why it is different for this endpoint. This looks like something along the lines of what we need but not 100% sure yet: Looks like similar things happen in other languages as well Still investigating |
Will a fix for this be prioritized? I've tried using CreateFromResourceResponseAsync() to which all properties I need (Authority, Resource) returns null. Manually using a GET request with HttpClient to the resourceUri and passing in the HttpResponseHeaders object from that into CreateFromResponseHeaders() also returns null. Manually passing in the WWW-Authenticate header value as a string into CreateFromWwwAuthenticateHeaderValue() also returns null. This is how the header string looks like: |
Yes, you are right @alvin-h , this is important. |
@trwalke - aren't you working on this? |
The WWWAuthenticate helper fails for
Bearer authorization_uri=https://login.microsoftonline.com/12345678-268e-46c2-8d30-1ad8ad2cd49d/oauth2/authorize, resource_id=https://testingorg0127.crm10.dynamics.com/
There seem to be 2 problems:
.Any()
returnsfalse
For more details please see here
The text was updated successfully, but these errors were encountered: