You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Successfully tested with Angular 4.3+, Angular 5 and its Router,PathLocationStrategy as well as HashLocationStrategy and CommonJS-Bundling via webpack. At server side we've used IdentityServer (.NET/ .NET Core) and Redhat's Keycloak (Java).
30
+
Successfully tested with Angular 4.3+, Angular 5 and its Router,PathLocationStrategy as well as HashLocationStrategy and CommonJS-Bundling via webpack. At server side we've used IdentityServer (.NET/ .NET Core) and Redhat's Keycloak (Java).
31
31
32
32
## New Features in Version 3.1
33
33
@@ -265,8 +265,7 @@ OAuthModule.forRoot({
265
265
266
266
## Routing
267
267
268
-
If you use the ``PathLocationStragegy`` (which is on by default) and have a general catch-all-route (``path: '**'``) you should be fine. Otherwise look up the section ``Routing with the HashStrategy`` in the [documation](https://manfredsteyer.github.io/angular-oauth2-oidc/angular-oauth2-oidc/docs/).
269
-
268
+
If you use the ``PathLocationStrategy`` (which is on by default) and have a general catch-all-route (``path: '**'``) you should be fine. Otherwise look up the section ``Routing with the HashStrategy`` in the [documentation](https://manfredsteyer.github.io/angular-oauth2-oidc/angular-oauth2-oidc/docs/).
Copy file name to clipboardExpand all lines: angular-oauth2-oidc/README.MD
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ See [Release Notes](https://github.com/manfredsteyer/angular-oauth2-oidc/release
52
52
- Providing Events via the observable ``events``.
53
53
- The event ``token_expires`` can be used together with a silent refresh to automatically refresh a token when/ before it expires (see also property ``timeoutFactor``).
54
54
55
-
## Additional Features
55
+
## Additional Features
56
56
- Logging in via OAuth2 and OpenId Connect (OIDC) Implicit Flow (where user is redirected to Identity Provider)
57
57
- "Logging in" via Password Flow (where user enters his/her password into the client)
58
58
- Token Refresh for Password Flow by using a Refresh Token
@@ -76,7 +76,7 @@ You can use the OIDC-Sample-Server mentioned in the samples for Testing. It assu
@@ -98,7 +98,7 @@ import { OAuthModule } from 'angular-oauth2-oidc';
98
98
[...]
99
99
100
100
@NgModule({
101
-
imports: [
101
+
imports: [
102
102
[...]
103
103
HttpModule,
104
104
OAuthModule.forRoot()
@@ -109,13 +109,13 @@ import { OAuthModule } from 'angular-oauth2-oidc';
109
109
[...]
110
110
],
111
111
bootstrap: [
112
-
AppComponent
112
+
AppComponent
113
113
]
114
114
})
115
115
exportclassAppModule {
116
116
}
117
117
118
-
```
118
+
```
119
119
120
120
## Configuring for Implicit Flow
121
121
@@ -229,9 +229,9 @@ The following snippet contains the template for the login page:
229
229
230
230
### Skipping the Login Form
231
231
232
-
If you don't want to display a login form that tells the user that they are redirected to the identity server, you can use the convenince function ``this.oauthService.loadDiscoveryDocumentAndLogin();`` instead of ``this.oauthService.loadDiscoveryDocumentAndTryLogin();`` when setting up the library.
232
+
If you don't want to display a login form that tells the user that they are redirected to the identity server, you can use the convenince function ``this.oauthService.loadDiscoveryDocumentAndLogin();`` instead of ``this.oauthService.loadDiscoveryDocumentAndTryLogin();`` when setting up the library.
233
233
234
-
This directly redirects the user to the identity server if there are no valid tokens.
234
+
This directly redirects the user to the identity server if there are no valid tokens.
Copy file name to clipboardExpand all lines: angular-oauth2-oidc/docs/additional-documentation/working-with-httpinterceptors.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -587,7 +587,7 @@
587
587
588
588
589
589
<h1id="interceptors">Interceptors</h1>
590
-
<p>Since 3.1 the library uses a default HttpInterceptor that takes care about transmitting the access_token to the resource server and about error handling for security related errors (HTTP status codes 401 and 403) received from the resource server. To put in on, just set <code>sendAccessToken</code> to <code>true</code> and set <code>allowedUrls</code> to an array with prefixes for the respective urls. Use lower case for the prefixes:</p>
590
+
<p>Since 3.1 the library uses a default HttpInterceptor that takes care about transmitting the access_token to the resource server and about error handling for security related errors (HTTP status codes 401 and 403) received from the resource server. To enable it, just set <code>sendAccessToken</code> to <code>true</code> and set <code>allowedUrls</code> to an array with prefixes for the respective urls. Use lower case for the prefixes:</p>
Copy file name to clipboardExpand all lines: angular-oauth2-oidc/docs/index.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -613,7 +613,7 @@ <h2 id="new-features-in-version-2">New Features in Version 2</h2>
613
613
<li>Token Refresh for Implicit Flow by implementing "silent refresh"</li>
614
614
<li>Validating the signature of the received id_token</li>
615
615
<li>Providing Events via the observable <code>events</code>.</li>
616
-
<li>The event <code>token_expires</code> can be used togehter with a silent refresh to automatically refresh a token when/ before it expires (see also property <code>timeoutFactor</code>).</li>
616
+
<li>The event <code>token_expires</code> can be used together with a silent refresh to automatically refresh a token when/ before it expires (see also property <code>timeoutFactor</code>).</li>
0 commit comments