diff --git a/components/connection/ServerConnectForm.vue b/components/connection/ServerConnectForm.vue
index 40a6330e..57a8ac93 100644
--- a/components/connection/ServerConnectForm.vue
+++ b/components/connection/ServerConnectForm.vue
@@ -52,7 +52,7 @@
- Login with OpenId
+ {{ oauth.buttonText }}
@@ -102,7 +102,8 @@ export default {
authMethods: [],
oauth: {
state: null,
- verifier: null
+ verifier: null,
+ buttonText: 'Login with OpenID'
}
}
},
@@ -595,6 +596,11 @@ export default {
if (this.validateLoginFormResponse(statusData, this.serverConfig.address, protocolProvided)) {
this.showAuth = true
this.authMethods = statusData.data.authMethods || []
+ this.oauth.buttonText = statusData.data.authFormData?.authOpenIDButtonText || 'Login with OpenID'
+
+ if (statusData.data.authFormData?.authOpenIDAutoLaunch) {
+ this.clickLoginWithOpenId()
+ }
}
} catch (error) {
this.handleLoginFormError(error)