vix-ui
Version:
A set of essential UI modules for your Angular application in ViSenze
56 lines (55 loc) • 1.19 kB
TypeScript
/**
* VixAuthConfig holds the necessary config required by other services
*/
export declare class VixAuthConfig {
url: string;
issuer: string;
clientId: string;
redirectUrl: string;
apiKey: string;
loginUrl: string;
}
/**
* AuthConfigService provides get method for all parameters
*
* @var {string} _url: url for okta account like: 'https://dev-913444.oktapreview.com'
* @
*/
export declare class AuthConfigService {
private authConfig;
private _url;
private _issuer;
private _clientId;
private _redirectUrl;
private _apiKey;
private _loginUrl;
constructor(authConfig: VixAuthConfig);
getLoginUrl(): string;
/**
* @returns url
*/
getUrl(): string;
/**
* @returns issuer
*/
getIssuer(): string;
/**
* @returns clientId
*/
getClientId(): string;
/**
*
* @returns redirectUrl
*/
getRedirectUrl(): string;
/**
*
* @returns remove the domain from url.
* example: return '/foo/bar' if redirectUrl is 'http://foobar.com/foo/bar'
*/
getRoute(): string;
/**
* @returns okta API key
*/
getApiKey(): string;
}