function ISConfiguration(_a) {
        var _b = _a === void 0 ? {} : _a, _c = _b.isBaseUrl, isBaseUrl = _c === void 0 ? 'https://localhost:9443' : _c, _d = _b.flowType, flowType = _d === void 0 ? exports.IMPLICIT_FLOW : _d, _e = _b.userStore, userStore = _e === void 0 ? exports.USER_STORE_LOCAL : _e, _f = _b.clientId, clientId = _f === void 0 ? '' : _f, _g = _b.clientSecret, clientSecret = _g === void 0 ? null : _g, _h = _b.redirectUri, redirectUri = _h === void 0 ? 'http://localhost:7777/' : _h, _j = _b.scope, scope = _j === void 0 ? 'openid' : _j, _k = _b.postLogoutRedirectUri, postLogoutRedirectUri = _k === void 0 ? 'http://localhost:7777/' : _k;
        // Where token should be saved in the browser - currently AppAuth supports only local storage
        this.userStore = new appauth_1.LocalStorageBackend();
        // client secret for PKCE flow
        this.clientSecret = null;
        var flowTypeInternal;
        switch (flowType) {
            case exports.PKCE_FLOW:
                flowTypeInternal = appauth_1.FLOW_TYPE_PKCE;
                break;
            case exports.IMPLICIT_FLOW:
                flowTypeInternal = appauth_1.FLOW_TYPE_IMPLICIT;
                break;
            default:
                flowTypeInternal = appauth_1.FLOW_TYPE_IMPLICIT;
        }
        this.authorizationServiceConfiguration = new appauth_1.AuthorizationServiceConfiguration(flowTypeInternal, isBaseUrl + '/oauth2/authorize', isBaseUrl + '/oauth2/token', isBaseUrl + '/oauth2/revoke', isBaseUrl + '/oidc/logout', isBaseUrl + '/oauth2/userinfo');
        switch (userStore) {
            case exports.USER_STORE_LOCAL:
                this.userStore = new appauth_1.LocalStorageBackend();
                break;
            case exports.USER_STORE_SESSION:
                console.log('Session storage is not currently supported on underlying platform.');
                break;
            default:
                this.userStore = new appauth_1.LocalStorageBackend();
        }
        this.clientId = clientId;
        this.clientSecret = clientSecret;
        this.redirectUri = redirectUri;
        this.scope = scope;
        this.postLogoutRedirectUri = postLogoutRedirectUri;
    }
/**
     * wso2is-client config class constructor.
     *
     * @param isBaseUrl wso2is server hosted base url - default: https://localhost:9443
     * @param flowType specify whether to go with IMPLICIT_FLOW or PKCE_FLOW - default: IMPLICIT_FLOW
     * @param userStore specify whether to go with USER_STORE_LOCAL or USER_STORE_SESSION (currently
     * not supported) - default: USER_STORE_LOCAL
     * @param clientId oauth/OIDC clientId - default: empty text
     * @param clientSecret client secret for PKCE flow - default: null
     * @param redirectUri redirect back to app URL - default: http://localhost:7777/
     * @param scope scope of OIDC/Oauth - default: openid
     * @param postLogoutRedirectUri after logout where to redirect URL - default:
     * http://localhost:7777/
     */
wso2is-client config class constructor.
wso2is - client config class constructor .
function ISConfiguration(_a) {
        var _b = _a === void 0 ? {} : _a, _c = _b.isBaseUrl, isBaseUrl = _c === void 0 ? 'https://localhost:9443' : _c, _d = _b.flowType, flowType = _d === void 0 ? exports.IMPLICIT_FLOW : _d, _e = _b.userStore, userStore = _e === void 0 ? exports.USER_STORE_LOCAL : _e, _f = _b.clientId, clientId = _f === void 0 ? '' : _f, _g = _b.clientSecret, clientSecret = _g === void 0 ? null : _g, _h = _b.redirectUri, redirectUri = _h === void 0 ? 'http://localhost:7777/' : _h, _j = _b.scope, scope = _j === void 0 ? 'openid' : _j, _k = _b.postLogoutRedirectUri, postLogoutRedirectUri = _k === void 0 ? 'http://localhost:7777/' : _k;
        this.userStore = new appauth_1.LocalStorageBackend();
        this.clientSecret = null;
        var flowTypeInternal;
        switch (flowType) {
            case exports.PKCE_FLOW:
                flowTypeInternal = appauth_1.FLOW_TYPE_PKCE;
                break;
            case exports.IMPLICIT_FLOW:
                flowTypeInternal = appauth_1.FLOW_TYPE_IMPLICIT;
                break;
            default:
                flowTypeInternal = appauth_1.FLOW_TYPE_IMPLICIT;
        }
        this.authorizationServiceConfiguration = new appauth_1.AuthorizationServiceConfiguration(flowTypeInternal, isBaseUrl + '/oauth2/authorize', isBaseUrl + '/oauth2/token', isBaseUrl + '/oauth2/revoke', isBaseUrl + '/oidc/logout', isBaseUrl + '/oauth2/userinfo');
        switch (userStore) {
            case exports.USER_STORE_LOCAL:
                this.userStore = new appauth_1.LocalStorageBackend();
                break;
            case exports.USER_STORE_SESSION:
                console.log('Session storage is not currently supported on underlying platform.');
                break;
            default:
                this.userStore = new appauth_1.LocalStorageBackend();
        }
        this.clientId = clientId;
        this.clientSecret = clientSecret;
        this.redirectUri = redirectUri;
        this.scope = scope;
        this.postLogoutRedirectUri = postLogoutRedirectUri;
    }
function ISConfiguration ( _a ) { var _b = _a === void 0 ? { } : _a , _c = _b . isBaseUrl , isBaseUrl = _c === void 0 ? 'https://localhost:9443' : _c , _d = _b . flowType , flowType = _d === void 0 ? exports . IMPLICIT_FLOW : _d , _e = _b . userStore , userStore = _e === void 0 ? exports . USER_STORE_LOCAL : _e , _f = _b . clientId , clientId = _f === void 0 ? '' : _f , _g = _b . clientSecret , clientSecret = _g === void 0 ? null : _g , _h = _b . redirectUri , redirectUri = _h === void 0 ? 'http://localhost:7777/' : _h , _j = _b . scope , scope = _j === void 0 ? 'openid' : _j , _k = _b . postLogoutRedirectUri , postLogoutRedirectUri = _k === void 0 ? 'http://localhost:7777/' : _k ; this . userStore = new appauth_1 . LocalStorageBackend ( ) ; this . clientSecret = null ; var flowTypeInternal ; switch ( flowType ) { case exports . PKCE_FLOW : flowTypeInternal = appauth_1 . FLOW_TYPE_PKCE ; break ; case exports . IMPLICIT_FLOW : flowTypeInternal = appauth_1 . FLOW_TYPE_IMPLICIT ; break ; default : flowTypeInternal = appauth_1 . FLOW_TYPE_IMPLICIT ; } this . authorizationServiceConfiguration = new appauth_1 . AuthorizationServiceConfiguration ( flowTypeInternal , isBaseUrl + '/oauth2/authorize' , isBaseUrl + '/oauth2/token' , isBaseUrl + '/oauth2/revoke' , isBaseUrl + '/oidc/logout' , isBaseUrl + '/oauth2/userinfo' ) ; switch ( userStore ) { case exports . USER_STORE_LOCAL : this . userStore = new appauth_1 . LocalStorageBackend ( ) ; break ; case exports . USER_STORE_SESSION : console . log ( 'Session storage is not currently supported on underlying platform.' ) ; break ; default : this . userStore = new appauth_1 . LocalStorageBackend ( ) ; } this . clientId = clientId ; this . clientSecret = clientSecret ; this . redirectUri = redirectUri ; this . scope = scope ; this . postLogoutRedirectUri = postLogoutRedirectUri ; }
wso2is-client config class constructor.
wso2is - client config class constructor .
// Where token should be saved in the browser - currently AppAuth supports only local storage // client secret for PKCE flow