Skip to content

Commit

Permalink
cmd: Improves jwk generation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas committed Jul 4, 2018
1 parent eb4598c commit 1c2ff8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/server/handler_oauth2_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ func newOAuth2Provider(c *config.Config) fosite.OAuth2Provider {
}

jwtStrategy, err := jwk.NewRS256JWTStrategy(c.Context().KeyManager, oauth2.OpenIDConnectKeyName)
pkg.Must(err, "Could not fetch private signing key for OpenID Connect - did you forget to run \"hydra migrate sql\" or forget to set the SYSTEM_SECRET?")
if err != nil {
c.GetLogger().WithError(err).Fatalf("Unable to refresh OpenID Connect signing keys.")
}
oidcStrategy := &openid.DefaultStrategy{JWTStrategy: jwtStrategy}

return compose.Compose(
Expand Down

0 comments on commit 1c2ff8b

Please sign in to comment.