Skip to content

Commit

Permalink
fix returning error from CreateSSOPRovider
Browse files Browse the repository at this point in the history
  • Loading branch information
mvlipka committed Oct 3, 2024
1 parent 704c330 commit e55f5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/api/src/database/sso.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type SSOProviderData interface {
// A slug will be created for the SSO Provider using the name argument as a base. The name will be lower cased and all spaces are replaced with `-`
func (s *BloodhoundDB) CreateSSOProvider(ctx context.Context, name string, authType model.SessionAuthProvider) (model.SSOProvider, error) {
if ssoProviderType, ok := ssoProviderTypeMapping[authType]; !ok {
return model.SSOProvider{}, fmt.Errorf("invalid auth type: %s", authType)
return model.SSOProvider{}, fmt.Errorf("error could not find a valid mapping from SessionAuthProvider to SSOProviderType: %d", authType)
} else {

provider := model.SSOProvider{
Expand Down

0 comments on commit e55f5e0

Please sign in to comment.