|
|
@ -8,10 +8,20 @@
|
|
|
|
v-tab(key='settings'): v-icon settings
|
|
|
|
v-tab(key='settings'): v-icon settings
|
|
|
|
v-tab(v-for='provider in providers', :key='provider.key') {{ provider.title }}
|
|
|
|
v-tab(v-for='provider in providers', :key='provider.key') {{ provider.title }}
|
|
|
|
|
|
|
|
|
|
|
|
v-tab-item(key='settings')
|
|
|
|
v-tab-item(key='settings', :transition='false', :reverse-transition='false')
|
|
|
|
v-card.pa-3
|
|
|
|
v-card.pa-3
|
|
|
|
|
|
|
|
.body-2.pb-2 Select which authentication providers are enabled:
|
|
|
|
v-form
|
|
|
|
v-form
|
|
|
|
v-checkbox(v-for='(provider, n) in providers', v-model='auths', :key='provider.key', :label='provider.title', :value='provider.key', color='primary')
|
|
|
|
v-checkbox(
|
|
|
|
|
|
|
|
v-for='(provider, n) in providers',
|
|
|
|
|
|
|
|
v-model='auths',
|
|
|
|
|
|
|
|
:key='provider.key',
|
|
|
|
|
|
|
|
:label='provider.title',
|
|
|
|
|
|
|
|
:value='provider.key',
|
|
|
|
|
|
|
|
color='primary',
|
|
|
|
|
|
|
|
:disabled='provider.key === `local`'
|
|
|
|
|
|
|
|
hide-details
|
|
|
|
|
|
|
|
)
|
|
|
|
v-divider
|
|
|
|
v-divider
|
|
|
|
v-btn(color='primary')
|
|
|
|
v-btn(color='primary')
|
|
|
|
v-icon(left) chevron_right
|
|
|
|
v-icon(left) chevron_right
|
|
|
@ -19,6 +29,26 @@
|
|
|
|
v-btn(color='black', dark)
|
|
|
|
v-btn(color='black', dark)
|
|
|
|
v-icon(left) layers_clear
|
|
|
|
v-icon(left) layers_clear
|
|
|
|
| Flush Sessions
|
|
|
|
| Flush Sessions
|
|
|
|
|
|
|
|
v-btn(icon, @click='refresh')
|
|
|
|
|
|
|
|
v-icon.grey--text refresh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
v-tab-item(v-for='(provider, n) in providers', :key='provider.key', :transition='false', :reverse-transition='false')
|
|
|
|
|
|
|
|
v-card.pa-3
|
|
|
|
|
|
|
|
.body-1(v-if='!provider.props || provider.props.length < 1') This provider has no configuration options you can modify.
|
|
|
|
|
|
|
|
v-form(v-else)
|
|
|
|
|
|
|
|
v-text-field(v-for='prop in provider.props', :key='prop', :label='prop', prepend-icon='mode_edit')
|
|
|
|
|
|
|
|
v-divider
|
|
|
|
|
|
|
|
v-btn(color='primary')
|
|
|
|
|
|
|
|
v-icon(left) chevron_right
|
|
|
|
|
|
|
|
| Save Configuration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
v-snackbar(
|
|
|
|
|
|
|
|
color='success'
|
|
|
|
|
|
|
|
top
|
|
|
|
|
|
|
|
v-model='refreshCompleted'
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
v-icon.mr-3(dark) cached
|
|
|
|
|
|
|
|
| List of providers has been refreshed.
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
@ -28,7 +58,8 @@ export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
providers: [],
|
|
|
|
providers: [],
|
|
|
|
auths: ['local']
|
|
|
|
auths: ['local'],
|
|
|
|
|
|
|
|
refreshCompleted: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
apollo: {
|
|
|
|
apollo: {
|
|
|
@ -36,6 +67,12 @@ export default {
|
|
|
|
query: CONSTANTS.GRAPH.AUTHENTICATION.QUERY_PROVIDERS,
|
|
|
|
query: CONSTANTS.GRAPH.AUTHENTICATION.QUERY_PROVIDERS,
|
|
|
|
update: (data) => data.authentication.providers
|
|
|
|
update: (data) => data.authentication.providers
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
async refresh() {
|
|
|
|
|
|
|
|
await this.$apollo.queries.providers.refetch()
|
|
|
|
|
|
|
|
this.refreshCompleted = true
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|