diff --git a/src/views/oauth/index.vue b/src/views/oauth/index.vue index c55472c..00cd483 100644 --- a/src/views/oauth/index.vue +++ b/src/views/oauth/index.vue @@ -34,6 +34,9 @@ + + + @@ -43,6 +46,9 @@ + + + @@ -82,6 +88,7 @@ const ops = [ { value: 'github', label: 'Github' }, { value: 'google', label: 'Google' }, + { value: 'oidc', label: 'OIDC' } ] const getList = async () => { listRes.loading = true @@ -127,9 +134,11 @@ const formData = reactive({ id: 0, op: '', + issuer: '', client_id: '', client_secret: '', redirect_url: '', + scopes: '', auto_register: false, }) const rules = { @@ -142,9 +151,11 @@ formVisible.value = true formData.id = row.id formData.op = row.op + formData.issuer = row.issuer formData.client_id = row.client_id formData.client_secret = row.client_secret formData.redirect_url = row.redirect_url + formData.scopes = row.scopes formData.auto_register = row.auto_register } @@ -152,9 +163,11 @@ formVisible.value = true formData.id = 0 formData.op = '' + formData.issuer = '' formData.client_id = '' formData.client_secret = '' formData.redirect_url = '' + formData.scopes = '' formData.auto_register = false } const form = ref(null)