Makes "status" on Configurable Provider not mandatory and refactors "redirect_uri" to not include the extra "configurableId".
This commit is contained in:
parent
db5b285832
commit
6c6114f0a1
|
@ -68,11 +68,12 @@ export class ConfigurableLoginComponent extends BaseComponent implements OnInit
|
||||||
}
|
}
|
||||||
|
|
||||||
public configurableAuthorize() {
|
public configurableAuthorize() {
|
||||||
window.location.href = this.provider.oauthUrl
|
let authUrl = this.provider.oauthUrl
|
||||||
+ '?response_type=code&client_id=' + this.provider.clientId
|
+ '?response_type=code&client_id=' + this.provider.clientId
|
||||||
+ '&redirect_uri=' + this.provider.redirect_uri + this.providerId
|
+ '&redirect_uri=' + this.provider.redirect_uri
|
||||||
+ '&state=' + this.provider.state
|
|
||||||
+ '&scope=' + this.provider.scope;
|
+ '&scope=' + this.provider.scope;
|
||||||
|
if (this.provider.state.length > 0) authUrl = authUrl + '&state=' + this.provider.state
|
||||||
|
window.location.href = authUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public configurableLoginUser(code: string, state: string) {
|
public configurableLoginUser(code: string, state: string) {
|
||||||
|
|
Loading…
Reference in New Issue