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
Copy file name to clipboardExpand all lines: README.md
+17-1
Original file line number
Diff line number
Diff line change
@@ -41,14 +41,15 @@ Please note, that this dependency is not needed for the **code flow**, which is
41
41
### Breaking change in 9.1.0
42
42
43
43
The use of `encodeURIComponent` on the argument passed to `initImplicitFlow` and its Code Flow counterparts was mandatory before this version.
44
+
44
45
Since that was considered a _bug_, the need to do so was removed.
45
46
Now the reverse is true **if you're upgrading from before 9.0.0**: you need to remove any call to encode URI components in your own application, as the library will now do it for you.
46
47
47
48
## Tested Environment
48
49
49
50
Successfully tested with **Angular 9** 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).
50
51
51
-
**Angular 9**: Use 9.x versions of this library (should also work with older Angular versions!).
52
+
**Angular 9**: Use 9.x versions of this library (**should also work with older Angular versions!**).
52
53
53
54
**Angular 8**: Use 8.x versions of this library.
54
55
@@ -90,6 +91,7 @@ Successfully tested with **Angular 9** and its Router, PathLocationStrategy as w
90
91
- Hook for further custom validations
91
92
- Single-Sign-Out by redirecting to the auth-server's logout-endpoint
92
93
- Tested with all modern browsers and IE
94
+
- Token Revocation according to [RFC 7009](https://tools.ietf.org/html/rfc7009#section-2.2)
The logOut method clears the used token store (by default ``sessionStorage``) and forwards the user to the auth servers logout endpoint if one was configured (manually or via the discovery document).
212
+
213
+
```typescript
214
+
this.oauthService.logOut();
215
+
```
216
+
217
+
If you want to revoke the existing access token and the existing refresh token before logging out, use the following method:
218
+
219
+
```typescript
220
+
this.oauthService.revokeTokenAndLogout();
221
+
```
222
+
207
223
### Skipping the Login Form
208
224
209
225
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 convenience function `this.oauthService.loadDiscoveryDocumentAndLogin();` instead of `this.oauthService.loadDiscoveryDocumentAndTryLogin();` when setting up the library.
0 commit comments