Return error if connection to OIDC server fails

This commit is contained in:
Timmy Welch 2023-01-16 19:46:34 -08:00
parent 3e77c30ed3
commit d504f22925
No known key found for this signature in database

View File

@ -176,7 +176,10 @@ func ValidateRequest(event SSHrimpEvent, c *config.SSHrimp, requestID string, fu
}
// Validate the user supplied identity token with the loaded configuration
i, _ := identity.NewIdentity(c)
i, err := identity.NewIdentity(c)
if err != nil {
return ssh.Certificate{}, err
}
usernames, err := i.Validate(event.Token)
if err != nil {
return ssh.Certificate{}, err