diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2019-03-01 17:27:10 +0100 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2019-03-01 17:27:10 +0100 |
commit | c0b3c810127032a65a7570656842d7f6cefd4a5d (patch) | |
tree | 15d357931d77f5a6b20b185bf783503894bf3bd3 /src/app/open-id.service.ts | |
parent | 26761220b7758a3a6770e8f95e6cc50d8a4104cc (diff) | |
download | reclaim-ui-c0b3c810127032a65a7570656842d7f6cefd4a5d.tar.gz reclaim-ui-c0b3c810127032a65a7570656842d7f6cefd4a5d.zip |
make webex ready!
Diffstat (limited to 'src/app/open-id.service.ts')
-rw-r--r-- | src/app/open-id.service.ts | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/app/open-id.service.ts b/src/app/open-id.service.ts index 85d8f98..35c7496 100644 --- a/src/app/open-id.service.ts +++ b/src/app/open-id.service.ts | |||
@@ -11,7 +11,9 @@ export class OpenIdService { | |||
11 | 11 | ||
12 | constructor(private http: HttpClient, | 12 | constructor(private http: HttpClient, |
13 | private config: ConfigService, | 13 | private config: ConfigService, |
14 | private router: Router) { } | 14 | private router: Router) { |
15 | this.params = {}; | ||
16 | } | ||
15 | 17 | ||
16 | login(identity: Identity) { | 18 | login(identity: Identity) { |
17 | const httpOptions = { | 19 | const httpOptions = { |
@@ -21,10 +23,9 @@ export class OpenIdService { | |||
21 | } | 23 | } |
22 | 24 | ||
23 | parseRouteParams(params: any): any { | 25 | parseRouteParams(params: any): any { |
24 | if (undefined !== this.params) { | ||
25 | return; | ||
26 | } | ||
27 | this.params = params; | 26 | this.params = params; |
27 | console.log("Added OIDC params"); | ||
28 | console.log(this.params); | ||
28 | } | 29 | } |
29 | 30 | ||
30 | authorize(): any { | 31 | authorize(): any { |
@@ -44,6 +45,12 @@ export class OpenIdService { | |||
44 | } | 45 | } |
45 | 46 | ||
46 | inOpenIdFlow(): any { | 47 | inOpenIdFlow(): any { |
48 | if (this.params['redirect_uri'] !== undefined) { | ||
49 | console.log ("In OIDC flow"); | ||
50 | } else { | ||
51 | console.log ("Not in OIDC flow"); | ||
52 | console.log (this.params); | ||
53 | } | ||
47 | return this.params['redirect_uri'] !== undefined; | 54 | return this.params['redirect_uri'] !== undefined; |
48 | } | 55 | } |
49 | 56 | ||