First commit
This commit is contained in:
8
tmpl/index.html
Normal file
8
tmpl/index.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Go Auth</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="/auth/openid-connect">Log In</a>
|
||||
</body>
|
||||
</html>
|
||||
27
tmpl/user.html
Normal file
27
tmpl/user.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Go Auth</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{.Username}}</h1>
|
||||
<br />
|
||||
<br />
|
||||
<p><a href="/logout/{{.OpenIdInfo.Provider}}">logout</a></p>
|
||||
<br />
|
||||
<br />
|
||||
<div>
|
||||
<h3>Open ID Information</h3>
|
||||
<p>Name: {{.OpenIdInfo.Name}} [{{.OpenIdInfo.LastName}}, {{.OpenIdInfo.FirstName}}]</p>
|
||||
<p>Email: {{.OpenIdInfo.Email}}</p>
|
||||
<p>NickName: {{.OpenIdInfo.NickName}}</p>
|
||||
<p>Location: {{.OpenIdInfo.Location}}</p>
|
||||
<p>AvatarURL: {{.OpenIdInfo.AvatarURL}} <img src="{{.OpenIdInfo.AvatarURL}}"></p>
|
||||
<p>Description: {{.OpenIdInfo.Description}}</p>
|
||||
<p>UserID: {{.OpenIdInfo.UserID}}</p>
|
||||
<p>AccessToken: {{.OpenIdInfo.AccessToken}}</p>
|
||||
<p>ExpiresAt: {{.OpenIdInfo.ExpiresAt}}</p>
|
||||
<p>RefreshToken: {{.OpenIdInfo.RefreshToken}}</p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user