angular-http-auth icon indicating copy to clipboard operation
angular-http-auth copied to clipboard

Doesn't work with WWW-Authenticate header

Open panesofglass opened this issue 10 years ago • 2 comments

If I submit a WWW-Authenticate header back with the 401 response using Basic authentication, I still see the browser window pop-up. Any idea as to how I could block the browser's pop-up? I need to be able to authenticate users in the browser for other scenarios.

panesofglass avatar Jul 08 '14 18:07 panesofglass

I believe the only way to avoid this is to change the response header from the server-side. So you could change it from WWW-Authenticate Basic ... to WWW-Authenticate xBasic ... or something.

Rykus0 avatar Aug 15 '14 19:08 Rykus0

@Rykus0, that is what I found, as well. It is unfortunate, since I have other pages on the site I would like to protect in the same way that are not part of the Angular app. So I'm broken in one form or another. :(

panesofglass avatar Aug 15 '14 21:08 panesofglass