Add a setting to restrict authentication to SSO only - Closes #368, Closes #362

This commit is contained in:
Bubka
2024-09-20 10:50:25 +02:00
parent 4d56e74b6f
commit 091129ef06
16 changed files with 455 additions and 61 deletions

View File

@ -0,0 +1,31 @@
<script setup>
const props = defineProps({
provider: {
type: String,
default: 'unknown'
}
})
const icons = {
unknown: {
collection: 'fa',
icon: 'globe',
},
github: {
collection: 'fab',
icon: 'github-alt',
},
openid: {
collection: 'fab',
icon: 'openid',
}
}
</script>
<template>
<a :id="'lnkSignWith' + props.provider" class="button is-link" :href="'socialite/redirect/' + props.provider">
{{ $t('auth.sso_providers.' + props.provider) }}
<FontAwesomeIcon class="ml-2" :icon="[icons[props.provider].collection, icons[props.provider].icon]" />
</a>
</template>