2018-03-04 02:48:28 +00:00
|
|
|
<template lang='pug'>
|
|
|
|
v-card(flat)
|
|
|
|
v-card(color='grey lighten-5')
|
|
|
|
.pa-3.pt-4
|
|
|
|
.headline.primary--text Authentication
|
|
|
|
.subheading.grey--text Configure the authentication settings of your wiki
|
|
|
|
v-tabs(color='grey lighten-4', grow, slider-color='primary', show-arrows)
|
|
|
|
v-tab(key='settings'): v-icon settings
|
2018-03-06 01:53:24 +00:00
|
|
|
v-tab(v-for='provider in providers', :key='provider.key') {{ provider.title }}
|
2018-03-04 02:48:28 +00:00
|
|
|
|
|
|
|
v-tab-item(key='settings')
|
|
|
|
v-card.pa-3
|
|
|
|
v-form
|
2018-03-06 01:53:24 +00:00
|
|
|
v-checkbox(v-for='(provider, n) in providers', v-model='auths', :key='provider.key', :label='provider.title', :value='provider.key', color='primary')
|
2018-03-04 02:48:28 +00:00
|
|
|
v-divider
|
|
|
|
v-btn(color='primary')
|
|
|
|
v-icon(left) chevron_right
|
|
|
|
| Set Providers
|
2018-03-05 20:49:36 +00:00
|
|
|
v-btn(color='black', dark)
|
|
|
|
v-icon(left) layers_clear
|
|
|
|
| Flush Sessions
|
2018-03-04 02:48:28 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2018-03-06 01:53:24 +00:00
|
|
|
/* global CONSTANTS */
|
|
|
|
|
2018-03-04 02:48:28 +00:00
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2018-03-06 01:53:24 +00:00
|
|
|
providers: [],
|
2018-03-04 02:48:28 +00:00
|
|
|
auths: ['local']
|
|
|
|
}
|
2018-03-06 01:53:24 +00:00
|
|
|
},
|
|
|
|
apollo: {
|
|
|
|
providers: {
|
|
|
|
query: CONSTANTS.GRAPH.AUTHENTICATION.QUERY_PROVIDERS,
|
|
|
|
update: (data) => data.authentication.providers
|
|
|
|
}
|
2018-03-04 02:48:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang='scss'>
|
|
|
|
|
|
|
|
</style>
|