-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WPB-14306 [enterprise login] Implement common prerequisites for multiple endpoints #4364
WPB-14306 [enterprise login] Implement common prerequisites for multiple endpoints #4364
Conversation
4e8d1a4
to
43678eb
Compare
e56f371
to
6d32c35
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! the only thing i'm not certain about is the logic, since i haven't read the RFC too carefully. if you want, we can go through the PR and the confluence page together and see if anything is off, but if you are confident, i am, too!
{-# LANGUAGE OverloadedRecordDot #-} | ||
{-# OPTIONS_GHC -Wno-ambiguous-fields #-} | ||
|
||
module Wire.EnterpriseLoginSubsystem.Interpreter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i didn't check every details of this module against the RFC. (should i? probably...)
libs/wire-subsystems/src/Wire/EnterpriseLoginSubsystem/Interpreter.hs
Outdated
Show resolved
Hide resolved
. userSubsystemInterpreter | ||
. runTeamInvitationSubsystem teamInvitationSubsystemConfig | ||
. authSubsystemInterpreter | ||
) | ||
) | ||
$ runReaderT ma e | ||
|
||
mkEnterpriseLoginSubsystemConfig :: Env -> Maybe EnterpriseLoginSubsystemConfig | ||
mkEnterpriseLoginSubsystemConfig env = do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would have made a missing audit-email field an error, unless it is explicitly stated in the RFC that we should silently stop sending emails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem with that is that not all environments are going to have this feature. Still a valid remark!
https://wearezeta.atlassian.net/browse/WPB-14306
Checklist
changelog.d