go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/server/loginsessions/internal/assets/pages/start.html (about)

     1  {{define "title"}}Login into a command line application{{end}}
     2  
     3  {{define "content"}}
     4  
     5  <div class="alert alert-danger" role="alert">
     6  Proceed only if you initiated the login flow yourself by running a command line
     7  application in a terminal. If you received this link from someone else or don't
     8  know what this is <b>stop now</b>. If you proceed, whoever gave you the link
     9  will be able to impersonate you.
    10  </div>
    11  <div class="alert alert-info">
    12    <div><b>Application:</b> {{.Session.ExecutableName}}</div>
    13    <div><b>Hostname:</b> {{.Session.ClientHostname}}</div>
    14    <div>
    15      <b>Scopes:</b>
    16      <ul>
    17        {{range .Session.OauthScopes}}
    18        <li>{{.}}</li>
    19        {{end}}
    20      </ul>
    21    </div>
    22  </div>
    23  
    24  
    25  <p>
    26  After clicking Proceed you'll be redirected to {{.OAuthClient.ProviderName}}
    27  page where you can pick the account to login with. After that you'll be
    28  redirected back to this site to finish the login process.
    29  </p>
    30  
    31  <div class="row">
    32    <div class="col">
    33      <form action="{{.OAuthClient.AuthorizationEndpoint}}" method="GET">
    34        {{- range $key, $value := .OAuthRedirectParams }}
    35        <input type="hidden" name="{{$key}}" value="{{$value}}">
    36        {{- end}}
    37        <button class="btn btn-primary w-100" type="submit">Proceed</button>
    38      </form>
    39    </div>
    40    <div class="col">
    41      <form action="/cli/cancel" method="POST">
    42        <input type="hidden" name="state" value="{{.OAuthState}}">
    43        <button class="btn btn-secondary w-100" type="submit">Cancel</button>
    44      </form>
    45    </div>
    46  </div>
    47  
    48  {{end}}