Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
af277ae9ca | |||
23106bfb23 | |||
8e285876fd | |||
46f747c766 | |||
eb0f90d51f | |||
ad1482e0a7 |
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "vue3-keycloak",
|
||||
"private": false,
|
||||
"version": "0.0.1",
|
||||
"name": "dalu-vue3-keycloak",
|
||||
"description": "vue3 keycloak adapter",
|
||||
"version": "0.0.4",
|
||||
"type": "module",
|
||||
"repository": "git@code.icod.de:dalu/vue3-keycloak.git",
|
||||
"files": [
|
||||
|
56
src/index.js
56
src/index.js
@ -6,7 +6,7 @@ export const KeycloakSymbol = Symbol('keycloak')
|
||||
import * as vue from 'vue'
|
||||
|
||||
export default {
|
||||
install: async function() {
|
||||
install: async function(app, params = {}) {
|
||||
if (installed) return
|
||||
installed = true
|
||||
|
||||
@ -37,33 +37,33 @@ function defaultEmptyVueKeycloakInstance() {
|
||||
return {
|
||||
ready: false,
|
||||
authenticated: false,
|
||||
userName: undefined,
|
||||
fullName: undefined,
|
||||
token: undefined,
|
||||
tokenParsed: undefined,
|
||||
logoutFn: undefined,
|
||||
loginFn: undefined,
|
||||
login: undefined,
|
||||
createLoginUrl: undefined,
|
||||
createLogoutUrl: undefined,
|
||||
createRegisterUrl: undefined,
|
||||
register: undefined,
|
||||
accountManagement: undefined,
|
||||
createAccountUrl: undefined,
|
||||
loadUserProfile: undefined,
|
||||
subject: undefined,
|
||||
idToken: undefined,
|
||||
idTokenParsed: undefined,
|
||||
realmAccess: undefined,
|
||||
resourceAccess: undefined,
|
||||
refreshToken: undefined,
|
||||
refreshTokenParsed: undefined,
|
||||
timeSkew: undefined,
|
||||
responseMode: undefined,
|
||||
responseType: undefined,
|
||||
hasRealmRole: undefined,
|
||||
hasResourceRole: undefined,
|
||||
keycloak: undefined,
|
||||
userName: null,
|
||||
fullName: null,
|
||||
token: null,
|
||||
tokenParsed: null,
|
||||
logoutFn: null,
|
||||
loginFn: null,
|
||||
login: null,
|
||||
createLoginUrl: null,
|
||||
createLogoutUrl: null,
|
||||
createRegisterUrl: null,
|
||||
register: null,
|
||||
accountManagement: null,
|
||||
createAccountUrl: null,
|
||||
loadUserProfile: null,
|
||||
subject: null,
|
||||
idToken: null,
|
||||
idTokenParsed: null,
|
||||
realmAccess: null,
|
||||
resourceAccess: null,
|
||||
refreshToken: null,
|
||||
refreshTokenParsed: null,
|
||||
timeSkew: null,
|
||||
responseMode: null,
|
||||
responseType: null,
|
||||
hasRealmRole: null,
|
||||
hasResourceRole: null,
|
||||
keycloak: null,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user