()
| 35 | } |
| 36 | |
| 37 | function onLoad() { |
| 38 | axiosInstance.get('auth/config').then(({data: config}) => { |
| 39 | const loginContainer = document.getElementById('login-content-container'); |
| 40 | |
| 41 | if (config['type'] === 'google_oauth') { |
| 42 | setupGoogleOAuth(loginContainer, config); |
| 43 | } else if (config['type'] === 'keycloak_openid') { |
| 44 | setupKeycloakOpenid(loginContainer, config); |
| 45 | } else if (config['type'] === 'gitlab') { |
| 46 | setupGitlabOAuth(loginContainer, config); |
| 47 | } else { |
| 48 | setupCredentials(loginContainer); |
| 49 | } |
| 50 | |
| 51 | const redirectError = checkRedirectReason() |
| 52 | if (redirectError) { |
| 53 | showError(redirectError) |
| 54 | } |
| 55 | }) |
| 56 | } |
| 57 | |
| 58 | function setupCredentials(loginContainer) { |
| 59 | var credentialsTemplate = createTemplateElement('login-credentials-template'); |
nothing calls this directly
no test coverage detected