Add more OIDC error output. (#1108)

Some of this is in the form of logging, and some via returning error
messages to users.

Also cleans a couple of linter complaints.
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-04-13 19:07:50 -04:00
1 parent 412018fbb4
commit ca57e50516
6 files changed
+59 -29

No files matched your search

+1 -1
View File
@@ -114,7 +114,7 @@ func handleGrpcGateway(c *Controller, props HandlerProperties) (http.Handler, er
if err := services.RegisterAccountServiceHandlerServer(ctx, mux, accts); err != nil {
return nil, fmt.Errorf("failed to register account service handler: %w", err)
}
authMethods, err := authmethods.NewService(c.kms, c.PasswordAuthRepoFn, c.OidcRepoFn, c.IamRepoFn, c.AuthTokenRepoFn)
authMethods, err := authmethods.NewService(c.kms, c.PasswordAuthRepoFn, c.OidcRepoFn, c.IamRepoFn, c.AuthTokenRepoFn, handlers.WithLogger(c.logger.Named("authmethod_service")))
if err != nil {
return nil, fmt.Errorf("failed to create auth method handler service: %w", err)
}