Skip to content

Commit 85f2dd1

Browse files
committed
2 parents 6002bf2 + ea476fd commit 85f2dd1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

README.MD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Support for OAuth 2 and OpenId Connect (OIDC) in Angular.
77
## Credits
88

99
- [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
1111
- [Identity Server](https://github.com/identityserver) (used for Testing with an .NET/.NET Core Backend)
1212
- [Keycloak (Redhad)](http://www.keycloak.org/) for Testing with Java
1313

@@ -112,6 +112,8 @@ This also allows for single sign on as well as single sign off.
112112
To configure the library the following sample uses the new configuration API introduced with Version 2.1.
113113
Hence, The original API is still supported.
114114

115+
Add a file in the root of `app` called `auth.config.ts` and paste in the following code:
116+
115117
```TypeScript
116118
import { AuthConfig } from 'angular-oauth2-oidc';
117119

angular-oauth2-oidc/src/auth.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class AuthConfig {
118118
/**
119119
* Defines whether https is required.
120120
* 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
122122
* to be used with https.
123123
*/
124124
public requireHttps?: boolean | 'remoteOnly' = 'remoteOnly';

angular-oauth2-oidc/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export * from './tokens';
2525

2626
@NgModule({
2727
imports: [
28-
CommonModule
28+
CommonModule,
29+
HttpModule
2930
],
3031
declarations: [
3132
],

0 commit comments

Comments
 (0)