oidc-react / index / UserManager
index.UserManager
-
OidcClient
↳ UserManager
- clearStaleState
- createSigninRequest
- createSignoutRequest
- getUser
- processSigninResponse
- processSignoutResponse
- querySessionStatus
- removeUser
- revokeAccessToken
- signinCallback
- signinPopup
- signinPopupCallback
- signinRedirect
- signinRedirectCallback
- signinSilent
- signinSilentCallback
- signoutCallback
- signoutPopup
- signoutPopupCallback
- signoutRedirect
- signoutRedirectCallback
- startSilentRenew
- stopSilentRenew
- storeUser
+ new UserManager(settings
: UserManagerSettings): UserManager
Name | Type |
---|---|
settings |
UserManagerSettings |
Returns: UserManager
Overrides: OidcClient.constructor
Defined in: node_modules/oidc-client/index.d.ts:171
• events: UserManagerEvents
Defined in: node_modules/oidc-client/index.d.ts:227
• Readonly
metadataService: MetadataService
Inherited from: OidcClient.metadataService
Defined in: node_modules/oidc-client/index.d.ts:123
• Readonly
settings: UserManagerSettings
Overrides: OidcClient.settings
Defined in: node_modules/oidc-client/index.d.ts:174
▸ clearStaleState(): Promise<void>
Removes stale state entries in storage for incomplete authorize requests
Returns: Promise<void>
Overrides: OidcClient.clearStaleState
Defined in: node_modules/oidc-client/index.d.ts:177
▸ createSigninRequest(args?
: any): Promise<SigninRequest>
Name | Type |
---|---|
args? |
any |
Returns: Promise<SigninRequest>
Inherited from: OidcClient.createSigninRequest
Defined in: node_modules/oidc-client/index.d.ts:115
▸ createSignoutRequest(args?
: any): Promise<SignoutRequest>
Name | Type |
---|---|
args? |
any |
Returns: Promise<SignoutRequest>
Inherited from: OidcClient.createSignoutRequest
Defined in: node_modules/oidc-client/index.d.ts:118
▸ getUser(): Promise<null | User>
Load the User object for the currently authenticated user
Returns: Promise<null | User>
Defined in: node_modules/oidc-client/index.d.ts:180
▸ processSigninResponse(url?
: string, stateStore?
: StateStore): Promise<SigninResponse>
Name | Type |
---|---|
url? |
string |
stateStore? |
StateStore |
Returns: Promise<SigninResponse>
Inherited from: OidcClient.processSigninResponse
Defined in: node_modules/oidc-client/index.d.ts:116
▸ processSignoutResponse(url?
: string, stateStore?
: StateStore): Promise<SignoutResponse>
Name | Type |
---|---|
url? |
string |
stateStore? |
StateStore |
Returns: Promise<SignoutResponse>
Inherited from: OidcClient.processSignoutResponse
Defined in: node_modules/oidc-client/index.d.ts:119
▸ querySessionStatus(args?
: any): Promise<SessionStatus>
Query OP for user's current signin status
Name | Type |
---|---|
args? |
any |
Returns: Promise<SessionStatus>
Defined in: node_modules/oidc-client/index.d.ts:218
▸ removeUser(): Promise<void>
Remove from any storage the currently authenticated user
Returns: Promise<void>
Defined in: node_modules/oidc-client/index.d.ts:183
▸ revokeAccessToken(): Promise<void>
Returns: Promise<void>
Defined in: node_modules/oidc-client/index.d.ts:220
▸ signinCallback(url?
: string): Promise<User>
Proxy to Popup, Redirect and Silent callbacks
Name | Type |
---|---|
url? |
string |
Returns: Promise<User>
Defined in: node_modules/oidc-client/index.d.ts:212
▸ signinPopup(args?
: any): Promise<User>
Trigger a request (via a popup window) to the authorization endpoint. The result of the promise is the authenticated User
Name | Type |
---|---|
args? |
any |
Returns: Promise<User>
Defined in: node_modules/oidc-client/index.d.ts:186
▸ signinPopupCallback(url?
: string): Promise<undefined | User>
Notify the opening window of response from the authorization endpoint
Name | Type |
---|---|
url? |
string |
Returns: Promise<undefined | User>
Defined in: node_modules/oidc-client/index.d.ts:188
▸ signinRedirect(args?
: any): Promise<void>
Trigger a redirect of the current window to the authorization endpoint
Name | Type |
---|---|
args? |
any |
Returns: Promise<void>
Defined in: node_modules/oidc-client/index.d.ts:196
▸ signinRedirectCallback(url?
: string): Promise<User>
Process response from the authorization endpoint.
Name | Type |
---|---|
url? |
string |
Returns: Promise<User>
Defined in: node_modules/oidc-client/index.d.ts:198
▸ signinSilent(args?
: any): Promise<User>
Trigger a silent request (via an iframe or refreshtoken if available) to the authorization endpoint
Name | Type |
---|---|
args? |
any |
Returns: Promise<User>
Defined in: node_modules/oidc-client/index.d.ts:191
▸ signinSilentCallback(url?
: string): Promise<undefined | User>
Notify the parent window of response from the authorization endpoint
Name | Type |
---|---|
url? |
string |
Returns: Promise<undefined | User>
Defined in: node_modules/oidc-client/index.d.ts:193
▸ signoutCallback(url?
: string, keepWindowOpen?
: boolean): Promise<undefined | SignoutResponse>
Proxy to Popup and Redirect callbacks
Name | Type |
---|---|
url? |
string |
keepWindowOpen? |
boolean |
Returns: Promise<undefined | SignoutResponse>
Defined in: node_modules/oidc-client/index.d.ts:215
▸ signoutPopup(args?
: any): Promise<void>
Trigger a redirect of a popup window window to the end session endpoint
Name | Type |
---|---|
args? |
any |
Returns: Promise<void>
Defined in: node_modules/oidc-client/index.d.ts:206
▸ signoutPopupCallback(url?
: string, keepOpen?
: boolean): Promise<void>
Process response from the end session endpoint from a popup window
Name | Type |
---|---|
url? |
string |
keepOpen? |
boolean |
Returns: Promise<void>
Defined in: node_modules/oidc-client/index.d.ts:208
▸ signoutPopupCallback(keepOpen?
: boolean): Promise<void>
Name | Type |
---|---|
keepOpen? |
boolean |
Returns: Promise<void>
Defined in: node_modules/oidc-client/index.d.ts:209
▸ signoutRedirect(args?
: any): Promise<void>
Trigger a redirect of the current window to the end session endpoint
Name | Type |
---|---|
args? |
any |
Returns: Promise<void>
Defined in: node_modules/oidc-client/index.d.ts:201
▸ signoutRedirectCallback(url?
: string): Promise<SignoutResponse>
Process response from the end session endpoint
Name | Type |
---|---|
url? |
string |
Returns: Promise<SignoutResponse>
Defined in: node_modules/oidc-client/index.d.ts:203
▸ startSilentRenew(): void
Enables silent renew
Returns: void
Defined in: node_modules/oidc-client/index.d.ts:223
▸ stopSilentRenew(): void
Disables silent renew
Returns: void
Defined in: node_modules/oidc-client/index.d.ts:225
▸ storeUser(user
: User): Promise<void>
Name | Type |
---|---|
user |
User |
Returns: Promise<void>
Defined in: node_modules/oidc-client/index.d.ts:181