Connect with one click
<% if (oauthGithub) { %>
π Connect GitHub
<% } else { %>
GitHub: OAuth app not configured<%= user.role === 'admin' ? ' β add the Client ID below' : ' β ask an admin' %>
<% } %>
<% if (oauthGitlab) { %>
π¦ Connect GitLab
<% } else { %>
GitLab: OAuth app not configured<%= user.role === 'admin' ? ' β add the Application ID below' : ' β ask an admin' %>
<% } %>
Opens the provider, you authorize, and the access token is written back automatically. Manual token entry below still works.
<% if (!accounts.length) { %>
No git accounts connected yet β add one below to browse repositories when creating projects.
<% } else { %>
| Provider | Label | API | Added | |
<% accounts.forEach(function (a) { %>
| <%= a.provider %> |
<%= a.label %> <%= a.auth_type === 'oauth' ? 'oauth' : 'token' %> |
<%= a.api_base || 'default' %> |
<%= h.fmtTime(a.created_at) %> |
<% if (a.provider === 'github' && a.auth_type === 'oauth' && oauthGithub) { %>
Reconnect
<% } %>
|
<% }) %>
<% } %>