Basic logout workflow
This commit is contained in:
@ -9,7 +9,11 @@
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="buttons is-right">
|
||||
{{if .IDToken}}
|
||||
<a class="button" href="/logout">Logout</a>
|
||||
{{else}}
|
||||
<a class="button is-primary" href="/login">Login</a>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,8 +3,6 @@
|
||||
<section class="home is-fullheight section">
|
||||
<div class="container">
|
||||
{{template "header" .}}
|
||||
<h2 class="is-size-4">Jeton OpenID Connect</h2>
|
||||
<pre>{{ .JSONIDToken }}</pre>
|
||||
{{template "footer" .}}
|
||||
</div>
|
||||
</section>
|
||||
|
12
cmd/server/template/layouts/profile.html.tmpl
Normal file
12
cmd/server/template/layouts/profile.html.tmpl
Normal file
@ -0,0 +1,12 @@
|
||||
{{define "title"}}Accueil{{end}}
|
||||
{{define "body"}}
|
||||
<section class="home is-fullheight section">
|
||||
<div class="container">
|
||||
{{template "header" .}}
|
||||
<h2 class="is-size-4">Jeton OpenID Connect</h2>
|
||||
<pre>{{ .JSONIDToken }}</pre>
|
||||
{{template "footer" .}}
|
||||
</div>
|
||||
</section>
|
||||
{{end}}
|
||||
{{template "base" .}}
|
Reference in New Issue
Block a user