This commit modifies the OIDC authentication start method to return a 400 (Bad Request) error
if a client attempts to start the authentication flow against an OIDC auth method that is set to
inactive. This is something we noticed in our error logs in HCP Boundary that is impacting our
SLOs.
Previously this returned its own error code which is mapped to a 500 response. Tests have been updated
to catch this new scenario.
Signed-off-by: David Bond <davidsbond93@gmail.com>
event.WriteError(ctx,op,err,event.WithInfoMsg("error starting the oidc authentication flow"))
returnnil,handlers.ApiErrorWithCodeAndMessage(codes.Internal,"Error generating parameters for starting the OIDC flow. See the controller's log for more information.")