Makes "status" on Configurable Provider not mandatory and refactors "redirect_uri" to not include the extra "configurableId".

This commit is contained in:
gkolokythas 2019-11-14 14:04:47 +02:00
parent db5b285832
commit 6c6114f0a1
1 changed files with 4 additions and 3 deletions

View File

@ -68,11 +68,12 @@ export class ConfigurableLoginComponent extends BaseComponent implements OnInit
}
public configurableAuthorize() {
window.location.href = this.provider.oauthUrl
let authUrl = this.provider.oauthUrl
+ '?response_type=code&client_id=' + this.provider.clientId
+ '&redirect_uri=' + this.provider.redirect_uri + this.providerId
+ '&state=' + this.provider.state
+ '&redirect_uri=' + this.provider.redirect_uri
+ '&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) {