@salte-auth/wso2
Version:
A Salte Auth provider for authenticating with WSO2!
31 lines (22 loc) • 694 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var salteAuth = require('@salte-auth/salte-auth');
class WSO2 extends salteAuth.OpenIDProvider {
constructor(config) {
super(config);
}
get name() {
return 'wso2';
}
get login() {
return this.url("".concat(this.config.url, "/oauth2/authorize"));
}
get logout() {
// https://localhost:9443/oidc/logout?id_token_hint=<id_token>&post_logout_redirect_uri=<redirect URI>&state=<state>
return this.url("".concat(this.config.url, "/oidc/logout"), {
id_token_hint: this.idToken.raw,
post_logout_redirect_uri: this.redirectUrl('logout')
});
}
}
exports.WSO2 = WSO2;