dixy-oauth
v1.0.1
Published
Library for OAuth 2.0 authentication on the IdentityServer
Downloads
16
Readme
dixy-oauth
Vue.js library for OAuth 2.0 authentication on the IdentityServer
Install
Yarn
yarn add dixy-oauth
Setup
The following packages must be installed
axios, qs, moment
Configure .env file
// .env
VUE_APP_DIXY_OAUTH_AUTHORITY=IDENTITYSERVER URL
VUE_APP_DIXY_OAUTH_CLIENT_ID=CLIENT ID
VUE_APP_DIXY_OAUTH_REDIRECT_URI=REDIRECT URI
VUE_APP_DIXY_OAUTH_RESPONSE_TYPE=RESPONSE TYPE
VUE_APP_DIXY_OAUTH_GRANT_TYPE=GRANT TYPE
VUE_APP_DIXY_OAUTH_SCOPE=SCOPE
VUE_APP_DIXY_OAUTH_CODE_CHALLENGE_METHOD=CHALLENGE METHOD
VUE_APP_DIXY_OAUTH_CODE_CHALLENGE=CODE CHALLENGE
VUE_APP_DIXY_OAUTH_CODE_VERIFIER=CODE VERIFIER
VUE_APP_DIXY_OAUTH_POST_LOGOUT_REDIRECT_URI=LOGOUT REDIRECT URI
VUE_APP_DIXY_OAUTH_STATE=STATE
Usage
import { getAuthorizationCode } from "dixy-oauth";
getAuthorizationCode()