diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..a5afaf7 --- /dev/null +++ b/.env.example @@ -0,0 +1,5 @@ +KEYCLOAK_ID="keuangan-firman" +KEYCLOAK_REALM="sandbox" +KEYCLOAK_URL="https://auth.rssa.top" +KEYCLOAK_SECRET="AA9XP2moa3pkGSgeRjX2UzYjYCgpM7Dj" +KEYCLOAK_ISSUER="https://auth.rssa.top/realms/sandbox" \ No newline at end of file diff --git a/assets/images/backgrounds/unauthorization.svg b/assets/images/backgrounds/unauthorization.svg new file mode 100644 index 0000000..82a65dd --- /dev/null +++ b/assets/images/backgrounds/unauthorization.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/components/auth/LoginForm.vue b/components/auth/LoginForm.vue index 8354fa3..04fe637 100755 --- a/components/auth/LoginForm.vue +++ b/components/auth/LoginForm.vue @@ -16,7 +16,11 @@ const passwordRules = ref([ (v: string) => (v && v.length <= 10) || 'Password must be less than 10 characters' ]); const emailRules = ref([(v: string) => !!v || 'E-mail is required', (v: string) => /.+@.+\..+/.test(v) || 'E-mail must be valid']); - +const { signIn, getProviders } = useAuth() +const providers = await getProviders() +const login = () => { + console.log(providers) +} diff --git a/components/auth/Unauthorization.vue b/components/auth/Unauthorization.vue new file mode 100644 index 0000000..cd7f8f2 --- /dev/null +++ b/components/auth/Unauthorization.vue @@ -0,0 +1,13 @@ + + diff --git a/components/layout/full/vertical-header/ProfileDD.vue b/components/layout/full/vertical-header/ProfileDD.vue index f4dd279..13f154f 100755 --- a/components/layout/full/vertical-header/ProfileDD.vue +++ b/components/layout/full/vertical-header/ProfileDD.vue @@ -1,5 +1,15 @@