|
|
@ -163,12 +163,21 @@
|
|
|
|
v-switch(
|
|
|
|
v-switch(
|
|
|
|
inset
|
|
|
|
inset
|
|
|
|
:label='$t(`admin:security.bypassLogin`)'
|
|
|
|
:label='$t(`admin:security.bypassLogin`)'
|
|
|
|
color='red darken-2'
|
|
|
|
color='primary'
|
|
|
|
v-model='config.authAutoLogin'
|
|
|
|
v-model='config.authAutoLogin'
|
|
|
|
prepend-icon='mdi-fast-forward'
|
|
|
|
prepend-icon='mdi-fast-forward'
|
|
|
|
persistent-hint
|
|
|
|
persistent-hint
|
|
|
|
:hint='$t(`admin:security.bypassLoginHint`)'
|
|
|
|
:hint='$t(`admin:security.bypassLoginHint`)'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
v-switch(
|
|
|
|
|
|
|
|
inset
|
|
|
|
|
|
|
|
:label='$t(`admin:security.hideLocalLogin`)'
|
|
|
|
|
|
|
|
color='primary'
|
|
|
|
|
|
|
|
v-model='config.authHideLocal'
|
|
|
|
|
|
|
|
prepend-icon='mdi-eye-off-outline'
|
|
|
|
|
|
|
|
persistent-hint
|
|
|
|
|
|
|
|
:hint='$t(`admin:security.hideLocalLoginHint`)'
|
|
|
|
|
|
|
|
)
|
|
|
|
v-divider.mt-3
|
|
|
|
v-divider.mt-3
|
|
|
|
.overline.grey--text.pa-4 {{$t('admin:security.jwt')}}
|
|
|
|
.overline.grey--text.pa-4 {{$t('admin:security.jwt')}}
|
|
|
|
.px-4.pb-3
|
|
|
|
.px-4.pb-3
|
|
|
@ -231,6 +240,7 @@ export default {
|
|
|
|
securityCSP: false,
|
|
|
|
securityCSP: false,
|
|
|
|
securityCSPDirectives: '',
|
|
|
|
securityCSPDirectives: '',
|
|
|
|
authAutoLogin: false,
|
|
|
|
authAutoLogin: false,
|
|
|
|
|
|
|
|
authHideLocal: false,
|
|
|
|
authLoginBgUrl: '',
|
|
|
|
authLoginBgUrl: '',
|
|
|
|
authJwtAudience: 'urn:wiki.js',
|
|
|
|
authJwtAudience: 'urn:wiki.js',
|
|
|
|
authJwtExpiration: '30m',
|
|
|
|
authJwtExpiration: '30m',
|
|
|
@ -256,6 +266,7 @@ export default {
|
|
|
|
mutation: gql`
|
|
|
|
mutation: gql`
|
|
|
|
mutation (
|
|
|
|
mutation (
|
|
|
|
$authAutoLogin: Boolean
|
|
|
|
$authAutoLogin: Boolean
|
|
|
|
|
|
|
|
$authHideLocal: Boolean
|
|
|
|
$authLoginBgUrl: String
|
|
|
|
$authLoginBgUrl: String
|
|
|
|
$authJwtAudience: String
|
|
|
|
$authJwtAudience: String
|
|
|
|
$authJwtExpiration: String
|
|
|
|
$authJwtExpiration: String
|
|
|
@ -275,6 +286,7 @@ export default {
|
|
|
|
site {
|
|
|
|
site {
|
|
|
|
updateConfig(
|
|
|
|
updateConfig(
|
|
|
|
authAutoLogin: $authAutoLogin,
|
|
|
|
authAutoLogin: $authAutoLogin,
|
|
|
|
|
|
|
|
authHideLocal: $authHideLocal,
|
|
|
|
authLoginBgUrl: $authLoginBgUrl,
|
|
|
|
authLoginBgUrl: $authLoginBgUrl,
|
|
|
|
authJwtAudience: $authJwtAudience,
|
|
|
|
authJwtAudience: $authJwtAudience,
|
|
|
|
authJwtExpiration: $authJwtExpiration,
|
|
|
|
authJwtExpiration: $authJwtExpiration,
|
|
|
@ -303,6 +315,7 @@ export default {
|
|
|
|
`,
|
|
|
|
`,
|
|
|
|
variables: {
|
|
|
|
variables: {
|
|
|
|
authAutoLogin: _.get(this.config, 'authAutoLogin', false),
|
|
|
|
authAutoLogin: _.get(this.config, 'authAutoLogin', false),
|
|
|
|
|
|
|
|
authHideLocal: _.get(this.config, 'authHideLocal', false),
|
|
|
|
authLoginBgUrl: _.get(this.config, 'authLoginBgUrl', ''),
|
|
|
|
authLoginBgUrl: _.get(this.config, 'authLoginBgUrl', ''),
|
|
|
|
authJwtAudience: _.get(this.config, 'authJwtAudience', ''),
|
|
|
|
authJwtAudience: _.get(this.config, 'authJwtAudience', ''),
|
|
|
|
authJwtExpiration: _.get(this.config, 'authJwtExpiration', ''),
|
|
|
|
authJwtExpiration: _.get(this.config, 'authJwtExpiration', ''),
|
|
|
@ -352,6 +365,7 @@ export default {
|
|
|
|
site {
|
|
|
|
site {
|
|
|
|
config {
|
|
|
|
config {
|
|
|
|
authAutoLogin
|
|
|
|
authAutoLogin
|
|
|
|
|
|
|
|
authHideLocal
|
|
|
|
authLoginBgUrl
|
|
|
|
authLoginBgUrl
|
|
|
|
authJwtAudience
|
|
|
|
authJwtAudience
|
|
|
|
authJwtExpiration
|
|
|
|
authJwtExpiration
|
|
|
|