-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added better error handling for OIDC authentication, updated dependen…
…cies
- Loading branch information
Showing
4 changed files
with
78 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
internal/webserver/web/templates/html_error_int_oauth.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{define "error_int_oauth"}} | ||
{{template "header" .}} | ||
|
||
<div class="row"> | ||
<div class="col"> | ||
{{ if eq .ErrorProvidedName "access_denied"}} | ||
<div class="card" style="width: 18rem;"> | ||
<div class="card-body"> | ||
<h2 class="card-title">Access denied</h2> | ||
<br> | ||
<p class="card-text">The request was denied by the user or authentication provider.</p><br> | ||
{{ else }} | ||
<div class="card" style="width: 65%;"> | ||
<div class="card-body"> | ||
<h2 class="card-title">OIDC Provider Error {{.ErrorProvidedName}}</h2> | ||
<br> | ||
<p class="card-text"><b>Login with OAuth provider was not sucessful, the following error was raised:</b></p> | ||
{{ if .ErrorProvidedMessage }} | ||
<p class="text-monospace">{{ .ErrorProvidedMessage }}</blockquote></p> | ||
{{ end}} | ||
<p class="text-monospace">{{ .ErrorGenericMessage }}</blockquote></p><br> | ||
{{ end }} | ||
<a href="./login" class="card-link">Try again</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{{template "footer"}} | ||
{{end}} |