Skip to content
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

ReplyForbiddenWithWwwAuthenticateHeaderAsync raises an obsolete error on v1.9.0 #1137

Closed
MarcoEnxuto opened this issue Apr 13, 2021 · 2 comments
Labels
bug Something isn't working In progress
Milestone

Comments

@MarcoEnxuto
Copy link

MarcoEnxuto commented Apr 13, 2021

Hi, before opening this as a bug, i would like to ask a question before moving forward.
I updated my WebAPI app to this version, and i can't compile because it raises the above error.

Also, the suggestion is a bit vague. What do you mean to "Use initialize instead"? Do you mean in the Startup class?

I took a look on the changes you made recently on the code, but didn't understand what is the path.

Can you clarify more on this? An example? or complete even more this?

The interface has the following.

[Obsolete("IDW10801: Use Initialize instead. See https://aka.ms/ms-id-web/1.9.0. ", true)]
Task ReplyForbiddenWithWwwAuthenticateHeaderAsync(IEnumerable scopes, MsalUiRequiredException msalServiceException, HttpResponse? httpResponse = null);

Also, if there's another path, your docs should be updated!
Such as this one: https://github.com/AzureAD/microsoft-identity-web/wiki/web-apis#handle-conditional-access

@MarcoEnxuto MarcoEnxuto changed the title ReplyForbiddenWithWwwAuthenticateHeaderAsync raises an error on v1.9.0 ReplyForbiddenWithWwwAuthenticateHeaderAsync raises an obsolete error on v1.9.0 Apr 13, 2021
@jennyf19 jennyf19 added bug Something isn't working In progress labels Apr 14, 2021
@jennyf19
Copy link
Collaborator

nice catch, sorry about that. we will do a new release tomorrow (4.14) and have this fixed. thanks for letting us know. @MarcoEnxuto

@jmprieur
Copy link
Collaborator

Thanks again @MarcoEnxuto for the heads-up.
Microsoft.Identity.Web 1.9.1 just released with this fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working In progress
Projects
None yet
Development

No branches or pull requests

3 participants