UNPKG

@salte-auth/wso2

Version:

A Salte Auth provider for authenticating with WSO2!

27 lines (20 loc) 607 B
import { OpenIDProvider } from '@salte-auth/salte-auth'; class WSO2 extends 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') }); } } export { WSO2 };