auth

Paddy 2015-01-04 Parent:d442523df640 Child:163ce22fa4c9

108:2e4b5722eed0 Go to Latest

auth/authd/templates/simple.gotmpl

Add support for registering Clients. Add an API endpoint to register Clients, which was the last step necessary before the OAuth2 integration could be tried out.

History
     1.1 --- a/authd/templates/simple.gotmpl	Wed Dec 17 22:27:44 2014 -0500
     1.2 +++ b/authd/templates/simple.gotmpl	Sun Jan 04 00:07:27 2015 -0500
     1.3 @@ -25,6 +25,9 @@
     1.4  		<p>{{ .error }}</p>{{ end }}{{ if .internal_error }}
     1.5  		<h1>Error</h1>
     1.6  		<p>{{ .internal_error }}</p>{{ end }}{{ if not .error }}{{ if not .internal_error }}<h1>Grant access</h1>
     1.7 -		<p>{{ .client }} is requesting access to your account. if you grant it, you'll be redirected to {{ .redirectURL }}. Their access will be limited to {{ .scope }}. You are granting access for {{ .profile }}.</p>{{ end }}{{ end }}
     1.8 +		<p>{{ .client.Name }} is requesting access to your account. if you grant it, you'll be redirected to {{ .redirectURL }}. Their access will be limited to {{ .scope }}. You are granting access for {{ .profile.Name }}.</p>{{ end }}{{ end }}
     1.9 +		<form method="POST">
    1.10 +			<input type="submit" name="grant" value="approved">
    1.11 +		</form>
    1.12  	</body>
    1.13  </html>{{ end }}