My Very Own CI-server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.5 KiB

{{ define "title" }}{{end}}
{{ define "toolbar" }}
<a href="/oauth">
<i class="fa fa-chevron-left"></i>OAuth Token
{{ end }}
{{ define "content" }}
<h2>Add OAuth-Token</h2>
{{ render_error_list .errors }}
<div class="infobox">
Please use the following URL in your VCS as Redirect Url:
<pre>{{ .redirectUrl }}</pre>
<form method="post" action="/oauth/add">
<div class="field required">
<label for="oauth_name">Name</label>
<input type="text" id="oauth_name" name="oauth_name" value="" placeholder="Name"/>
<div class="field required">
<label for="oauth_api">API</label>
<select name="oauth_api" id="oauth_api" size="1">
<option value="gitea">Gitea</option>
<div class="field required">
<label for="oauth_url">Url</label>
<input type="text" id="oauth_url" name="oauth_url" value="" placeholder="">
<div class="field required">
<label for="oauth_clientId">Client-ID</label>
<input type="text" id="oauth_clientId" name="oauth_clientId" value="">
<div class="field required">
<label for="oauth_clientSecret">Client-Secret</label>
<input type="text" id="oauth_clientSecret" name="oauth_clientSecret" value="">
<input type="hidden" name="oauth_id" value="{{ .oauthid }}">
<button class="btn-primary">Authenticate with Provider</button>
{{ end }}