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() {
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue