diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2018-11-28 08:46:13 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2018-11-28 08:46:13 +0100 |
commit | cdfbdcb0768edd62bed05f4f222952026ff42fab (patch) | |
tree | 08ac37868f7455754882b62f71aba28b86357c3a /src/app/open-id.service.ts | |
parent | e0658e29e37a263d28066402d5c98742e2e2529f (diff) | |
download | reclaim-ui-cdfbdcb0768edd62bed05f4f222952026ff42fab.tar.gz reclaim-ui-cdfbdcb0768edd62bed05f4f222952026ff42fab.zip |
towards cancel ng
Diffstat (limited to 'src/app/open-id.service.ts')
-rw-r--r-- | src/app/open-id.service.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/app/open-id.service.ts b/src/app/open-id.service.ts index 8e5230e..85d8f98 100644 --- a/src/app/open-id.service.ts +++ b/src/app/open-id.service.ts | |||
@@ -37,9 +37,10 @@ export class OpenIdService { | |||
37 | } | 37 | } |
38 | 38 | ||
39 | cancelAuthorization(): any { | 39 | cancelAuthorization(): any { |
40 | window.location.href = this.params['redirect_uri'] + '?error=access_denied' + | 40 | const httpOptions = { |
41 | '&error_description=user denied access' + | 41 | withCredentials: true |
42 | '&state=' + this.params['state']; | 42 | }; |
43 | return this.http.post(this.config.get().apiUrl + '/openid/login', { 'identity': 'Denied'}, httpOptions); | ||
43 | } | 44 | } |
44 | 45 | ||
45 | inOpenIdFlow(): any { | 46 | inOpenIdFlow(): any { |