UNPKG

vix-ui

Version:

A set of essential UI modules for your Angular application in ViSenze

39 lines (38 loc) 1.04 kB
import { HttpClient } from '@angular/common/http'; import { AuthConfigService } from './auth-config.service'; /** * Wrapper for Okta API */ export declare class OktaService { private httpClient; private authConfig; private httpOptions; /** * @param httpClient * @param authConfig */ constructor(httpClient: HttpClient, authConfig: AuthConfigService); /** * Build Full API URl by given endpoint * @param endpoint * @returns */ getFullUrl(endpoint: string): string; /** * Get user info by email. * doc: https://developer.okta.com/docs/api/resources/users#get-current-user * @returns */ getUserInfo(userId: string): Promise<Object>; /** * Get user groups information by given userId * doc: https://developer.okta.com/docs/api/resources/users#get-member-groups * @param userId * @returns */ getUserGroups(userId: string): Promise<Object>; /** * List all groups */ listGroups(): Promise<Object>; }