@@ -148,14 +148,14 @@ import { Component } from '@angular/core';
148
148
})
149
149
export class AppComponent {
150
150
151
- constructor (private oauthService : OAuthService ) {
151
+ constructor (private oAuthService : OAuthService ) {
152
152
this .configureWithNewConfigApi ();
153
153
}
154
154
155
155
private configureWithNewConfigApi() {
156
- this .oauthService .configure (authConfig );
157
- this .oauthService .tokenValidationHandler = new JwksValidationHandler ();
158
- this .oauthService .loadDiscoveryDocumentAndTryLogin ();
156
+ this .oAuthService .configure (authConfig );
157
+ this .oAuthService .tokenValidationHandler = new JwksValidationHandler ();
158
+ this .oAuthService .loadDiscoveryDocumentAndTryLogin ();
159
159
}
160
160
}
161
161
```
@@ -173,15 +173,15 @@ import { OAuthService } from 'angular-oauth2-oidc';
173
173
})
174
174
export class HomeComponent {
175
175
176
- constructor (private oauthService : OAuthService ) {
176
+ constructor (private oAuthService : OAuthService ) {
177
177
}
178
178
179
179
public login() {
180
- this .oauthService .initImplicitFlow ();
180
+ this .oAuthService .initImplicitFlow ();
181
181
}
182
182
183
183
public logoff() {
184
- this .oauthService .logOut ();
184
+ this .oAuthService .logOut ();
185
185
}
186
186
187
187
public get name() {
@@ -221,15 +221,15 @@ Pass this Header to the used method of the ``Http``-Service within an Instance o
221
221
222
222
``` TypeScript
223
223
var headers = new Headers ({
224
- " Authorization" : " Bearer " + this .oauthService .getAccessToken ()
224
+ " Authorization" : " Bearer " + this .oAuthService .getAccessToken ()
225
225
});
226
226
```
227
227
228
228
If you are using the new HttpClient, use the class HttpHeaders instead:
229
-
229
+
230
230
``` TypeScript
231
231
var headers = new HttpHeaders ({
232
- " Authorization" : " Bearer " + this .oauthService .getAccessToken ()
232
+ " Authorization" : " Bearer " + this .oAuthService .getAccessToken ()
233
233
});
234
234
```
235
235
0 commit comments