Skip to content

Commit

Permalink
refactor: handle EULAAccepted with db override
Browse files Browse the repository at this point in the history
  • Loading branch information
mistahj67 committed Dec 24, 2024
1 parent e568316 commit e2660a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/api/src/api/registration/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func RegisterFossGlobalMiddleware(routerInst *router.Router, cfg config.Configur
func RegisterFossRoutes(
routerInst *router.Router,
cfg config.Configuration,
rdms *database.BloodhoundDB,
rdms database.Database,
graphDB *graph.DatabaseSwitch,
graphQuery queries.Graph,
apiCache cache.Cache,
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/src/api/v2/auth/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (s ManagementResource) OIDCCallbackHandler(response http.ResponseWriter, re
PrincipalName: claims.Email,
Roles: model.Roles{role},
SSOProviderID: null.Int32From(ssoProvider.ID),
EULAAccepted: true, // Need to find a work around since BHE cannot auto accept EULA as true
EULAAccepted: true, // EULA Acceptance does not pertain to Bloodhound Community Edition; this flag is used for Bloodhound Enterprise users.
FirstName: null.StringFrom(claims.Email),
LastName: null.StringFrom("Last name not found"),
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/src/api/v2/auth/saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ func (s ManagementResource) SAMLCallbackHandler(response http.ResponseWriter, re
PrincipalName: principalName,
Roles: model.Roles{role},
SSOProviderID: null.Int32From(ssoProvider.ID),
EULAAccepted: true, // Need to find a work around since BHE cannot auto accept EULA as true
EULAAccepted: true, // EULA Acceptance does not pertain to Bloodhound Community Edition; this flag is used for Bloodhound Enterprise users.
FirstName: null.StringFrom(principalName),
LastName: null.StringFrom("Last name not found"),
}
Expand Down

0 comments on commit e2660a5

Please sign in to comment.