Skip to content

Commit 634e271

Browse files
Change 'Authentication' to 'Authorization'
Fixes manfredsteyer#368
1 parent b4c8731 commit 634e271

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projects/lib/src/oauth-service.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -331,14 +331,14 @@ export class OAuthService extends AuthConfig {
331331

332332
/**
333333
* DEPRECATED. Use a provider for OAuthStorage instead:
334-
*
334+
*
335335
* { provide: OAuthStorage, useValue: localStorage }
336-
*
336+
*
337337
* Sets a custom storage used to store the received
338338
* tokens on client side. By default, the browser's
339339
* sessionStorage is used.
340340
* @ignore
341-
*
341+
*
342342
* @param storage
343343
*/
344344
public setStorage(storage: OAuthStorage): void {
@@ -638,7 +638,7 @@ export class OAuthService extends AuthConfig {
638638
if (this.useHttpBasicAuthForPasswordFlow) {
639639
const header = btoa(`${this.clientId}:${this.dummyClientSecret}`);
640640
headers = headers.set(
641-
'Authentication',
641+
'Authorization',
642642
'BASIC ' + header);
643643
}
644644

@@ -845,7 +845,7 @@ export class OAuthService extends AuthConfig {
845845
const redirectUri = this.silentRefreshRedirectUri || this.redirectUri;
846846
this.createLoginUrl(null, null, redirectUri, noPrompt, params).then(url => {
847847
iframe.setAttribute('src', url);
848-
848+
849849
if (!this.silentRefreshShowIFrame) {
850850
iframe.style['display'] = 'none';
851851
}

0 commit comments

Comments
 (0)