0.1.0 • Published 5 years ago

yiata-oidc v0.1.0

Weekly downloads
5
License
-
Repository
-
Last release
5 years ago

yiata-oidc

This component is based on 'iodc-client' that gives the access to all information about the user and how to enter the system.

Installation

npm i @haftcinco/yiata-oidc --save

Module

import { OidcService } from “@haftcinco/yiata-oidc”;

yiata-oidc functions

Here are some functions in yiata-oidc functions.

FunctionDescription
loginA function to login to the site.
logoutA function to logout to the site.
revokeTo Revoke the Access Token.
getPromiseUserTo get the user's information as a promise.
getUserTo get the user's information.
isLoggedInTo show if the user has logged in(true or false).
getClaimsTo get the user's 'claim' information.
getAuthorizationHeaderValueTo get the user's 'authorization token'.
getUserBalanceTo get the user's 'balance' information.
SaveUserIpTo store the user's 'IP'.
getUserTypeScreensTo get the user's list of menu that can be used just in 'Backoffice' and 'Business'.
hasScreenAccessShows the accessibility to the menu.