@obelisk/client
Advanced tools
Comparing version 2.8.2 to 2.8.3
@@ -23,2 +23,3 @@ import { Observable, Observer } from 'rxjs'; | ||
private useOfflineToken; | ||
private lastRedirectUri; | ||
private readonly defaultOptions; | ||
@@ -25,0 +26,0 @@ /** |
@@ -22,2 +22,3 @@ "use strict"; | ||
this.useOfflineToken = false; | ||
this.lastRedirectUri = null; | ||
this.defaultOptions = { | ||
@@ -147,2 +148,4 @@ authMode: 'entitlement', | ||
params += '&redirect_uri=' + encodeURIComponent(red_uri); | ||
// Store redirect_uri | ||
this.lastRedirectUri = encodeURIComponent(red_uri); | ||
// In case of queryString, add as state | ||
@@ -450,3 +453,3 @@ if (queryString !== null) { | ||
params += '&client_id=' + encodeURIComponent(this._options.clientId); | ||
params += '&redirect_uri=' + redUri; | ||
params += '&redirect_uri=' + this.lastRedirectUri == null ? redUri : this.lastRedirectUri; | ||
return ajax_1.ajax.post(tokenUrl, params, headers).pipe(operators_1.flatMap(resp => this.storeTokens(resp, hasState, false))); | ||
@@ -453,0 +456,0 @@ } |
{ | ||
"name": "@obelisk/client", | ||
"version": "2.8.2", | ||
"version": "2.8.3", | ||
"description": "Typescript client to interact with Obelisk on a higher level than the regular ReST API calls.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88099
2287