Incorrect header in useHttpBasicAuthForPasswordFlow
See original GitHub issueHello,
When configuring the basic authentication header for password flow you are using “Authentication” and the correct header for the scheme is “Authorization”
const header = btoa(`${this.clientId}:${this.dummyClientSecret}`);
headers = headers.set(
'Authentication',
'BASIC ' + header);
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:13
Top Results From Across the Web
angular-oauth2-oidc - UNPKG
useHttpBasicAuthForPasswordFlow ) {\r\n const header = btoa(`${this.clientId}:${this.dummyClientSecret}`);\r\n headers = headers.set(\r\n 'Authorization' ...
Read more >Error 500: Laravel and Angular 4 Invalid header name type ...
I have a backend using laravel 5.4 and a frontend with Angular 4, there's a error that I couldnt find, I dont know...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI: I just got a notification that this was changed in spring-security, slated for milestone “5.0.8”. That might make the workaround unneeded.
This is the workaround I’ve implemented for Spring Security:
The filter
Registering the Filter:
Thanks again @jeroenheijmans