Skip to content

Commit 0bf1686

Browse files
Merge pull request #149 from ArsProgramma/patch-1
Updated Readme: fixed mixed usage of oauth and oAuth
2 parents f30174e + 910dc6f commit 0bf1686

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.MD

+10-10
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@ import { Component } from '@angular/core';
148148
})
149149
export class AppComponent {
150150

151-
constructor(private oauthService: OAuthService) {
151+
constructor(private oAuthService: OAuthService) {
152152
this.configureWithNewConfigApi();
153153
}
154154

155155
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();
159159
}
160160
}
161161
```
@@ -173,15 +173,15 @@ import { OAuthService } from 'angular-oauth2-oidc';
173173
})
174174
export class HomeComponent {
175175

176-
constructor(private oauthService: OAuthService) {
176+
constructor(private oAuthService: OAuthService) {
177177
}
178178

179179
public login() {
180-
this.oauthService.initImplicitFlow();
180+
this.oAuthService.initImplicitFlow();
181181
}
182182

183183
public logoff() {
184-
this.oauthService.logOut();
184+
this.oAuthService.logOut();
185185
}
186186

187187
public get name() {
@@ -221,15 +221,15 @@ Pass this Header to the used method of the ``Http``-Service within an Instance o
221221

222222
```TypeScript
223223
var headers = new Headers({
224-
"Authorization": "Bearer " + this.oauthService.getAccessToken()
224+
"Authorization": "Bearer " + this.oAuthService.getAccessToken()
225225
});
226226
```
227227

228228
If you are using the new HttpClient, use the class HttpHeaders instead:
229-
229+
230230
```TypeScript
231231
var headers = new HttpHeaders({
232-
"Authorization": "Bearer " + this.oauthService.getAccessToken()
232+
"Authorization": "Bearer " + this.oAuthService.getAccessToken()
233233
});
234234
```
235235

0 commit comments

Comments
 (0)