{{#if (and githubAuthConfig.enabled useGloableConfig)}}
{{banner-message icon="icon-info" color="bg-info mb-0 mt-10" message=(t "pipelinesSetting.userGlobalConfig") }}

{{t "authPage.authenticated.header.text"}}


{{#if githubAuthConfig.hostname}}
{{t "authPage.authenticated.header.enterpriseHostName"}} {{githubAuthConfig.hostname}}
{{/if}}
{{t "authPage.authenticated.header.clientId.text"}} {{githubAuthConfig.clientId}}

{{t "pipelinesSetting.userGlobalConfig"}}

{{top-errors errors=errors}}
{{else}}

{{t "authPage.setup" type="Github" }}


  1. {{t "authPage.github.auth" htmlSafe=true}}
    • {{t "authPage.github.enterpriseAuth"}}
  2. {{t "authPage.github.ul.li2.text"}}
    • {{t "authPage.github.ul.li2.ul.li1" htmlSafe=true}}
    • {{t "authPage.github.ul.li2.ul.li2"}} {{homePageURL}}{{copy-to-clipboard size="small" clipboardText=homePageURL htmlSafe=true}}
    • {{t "authPage.github.ul.li2.ul.li3" htmlSafe=true}}
    • {{t "authPage.github.ul.li2.ul.li4"}} {{destinationUrl}} {{copy-to-clipboard size="small" clipboardText=destinationUrl}}
  3. {{t "authPage.github.ul.li3.text"}}

{{t "authPage.form.headerVariable" SCM="Github" }}

{{input type="text" name="username" value=oauthModel.clientId classNames="form-control" }}

{{t "authPage.github.form.subtextVariable"}}

{{input type="password" name="password" value=oauthModel.clientSecret classNames="form-control" }}
{{#liquid-if isEnterprise}}
{{/liquid-if}} {{#liquid-if isEnterprise}} {{input type="text" value=oauthModel.hostName classNames="form-control" placeholder=(t "authPage.form.enterpriseHost.placeholder") }} {{/liquid-if}}
{{top-errors errors=errors}}
{{save-cancel cancelDisabled=true savingLabel="authPage.testAuth.buttonText.post" createLabel="authPage.testAuth.buttonText.preVariable" save=(action "authenticate") }}
{{/if}}