mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-06 16:36:51 +00:00
fixes and formatting
This commit is contained in:
@@ -15,24 +15,24 @@ type Config struct {
|
||||
}
|
||||
|
||||
type IDPorten struct {
|
||||
ClientID string `json:"client-id"`
|
||||
ClientJWK string `json:"client-jwk"`
|
||||
RedirectURI string `json:"redirect-uri"`
|
||||
WellKnownURL string `json:"well-known-url"`
|
||||
WellKnown IDPortenWellKnown `json:"well-known"`
|
||||
Locale string `json:"locale"`
|
||||
SecurityLevel string `json:"security-level"`
|
||||
ClientID string `json:"client-id"`
|
||||
ClientJWK string `json:"client-jwk"`
|
||||
RedirectURI string `json:"redirect-uri"`
|
||||
WellKnownURL string `json:"well-known-url"`
|
||||
WellKnown IDPortenWellKnown `json:"well-known"`
|
||||
Locale string `json:"locale"`
|
||||
SecurityLevel string `json:"security-level"`
|
||||
}
|
||||
|
||||
const (
|
||||
BindAddress = "bind-address"
|
||||
LogFormat = "log-format"
|
||||
LogLevel = "log-level"
|
||||
IDPortenClientID = "idporten.client-id"
|
||||
IDPortenClientJWK = "idporten.client-jwk"
|
||||
IDPortenRedirectURI = "idporten.redirect-uri"
|
||||
IDPortenWellKnownURL = "idporten.well-known-url"
|
||||
IDPortenLocale = "idporten.locale"
|
||||
BindAddress = "bind-address"
|
||||
LogFormat = "log-format"
|
||||
LogLevel = "log-level"
|
||||
IDPortenClientID = "idporten.client-id"
|
||||
IDPortenClientJWK = "idporten.client-jwk"
|
||||
IDPortenRedirectURI = "idporten.redirect-uri"
|
||||
IDPortenWellKnownURL = "idporten.well-known-url"
|
||||
IDPortenLocale = "idporten.locale"
|
||||
IDPortenSecurityLevel = "idporten.security-level"
|
||||
)
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ func (h *Handler) Login(w http.ResponseWriter, r *http.Request) {
|
||||
randomUUID2, err := uuid.NewRandom()
|
||||
if err != nil {
|
||||
http.Error(w, "failed to create nonce: "+err.Error(), http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
nonce := randomUUID2.String()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user