File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Support for OAuth 2 and OpenId Connect (OIDC) in Angular.
7
7
## Credits
8
8
9
9
- [ generator-angular2-library] ( https://github.com/jvandemo/generator-angular2-library ) for scaffolding a angular library
10
- - [ jsrasign ] ( https://kjur.github.io/jsrsasign/ ) for validating token signature and for hashing
10
+ - [ jsrsasign ] ( https://kjur.github.io/jsrsasign/ ) for validating token signature and for hashing
11
11
- [ Identity Server] ( https://github.com/identityserver ) (used for Testing with an .NET/.NET Core Backend)
12
12
- [ Keycloak (Redhad)] ( http://www.keycloak.org/ ) for Testing with Java
13
13
@@ -112,6 +112,8 @@ This also allows for single sign on as well as single sign off.
112
112
To configure the library the following sample uses the new configuration API introduced with Version 2.1.
113
113
Hence, The original API is still supported.
114
114
115
+ Add a file in the root of ` app ` called ` auth.config.ts ` and paste in the following code:
116
+
115
117
``` TypeScript
116
118
import { AuthConfig } from ' angular-oauth2-oidc' ;
117
119
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ export class AuthConfig {
118
118
/**
119
119
* Defines whether https is required.
120
120
* The default value is remoteOnly which only allows
121
- * http for location , while every other domains need
121
+ * http for localhost , while every other domains need
122
122
* to be used with https.
123
123
*/
124
124
public requireHttps ?: boolean | 'remoteOnly' = 'remoteOnly' ;
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ export * from './tokens';
25
25
26
26
@NgModule ( {
27
27
imports : [
28
- CommonModule
28
+ CommonModule ,
29
+ HttpModule
29
30
] ,
30
31
declarations : [
31
32
] ,
You can’t perform that action at this time.
0 commit comments