UNPKG

vix-ui

Version:

30 lines (29 loc) 879 B
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; constructor(httpClient: HttpClient, authConfig: AuthConfigService); /** * Build Full API URl by given endpoint */ getFullUrl(endpoint: string): string; /** * Get user info by email. * doc: https://developer.okta.com/docs/api/resources/users#get-current-user */ getUserInfo(userId: string): Promise<Object>; /** * Get user groups information by given userId * doc: https://developer.okta.com/docs/api/resources/users#get-member-groups */ getUserGroups(userId: string): Promise<Object>; /** * List all groups */ listGroups(): Promise<Object>; }