First commit

This commit is contained in:
2024-06-29 23:24:43 -04:00
commit 4969323f8e
6 changed files with 190 additions and 0 deletions

8
tmpl/index.html Normal file
View 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
View 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>