AuthN: Add session client (#60894)
* add basic session client * populate UserToken in ReqContext * token rotation as a post auth hook * fixed in context handler * add session token rotation * add session token tests * use namespacedID constructor
This commit is contained in:
@@ -27,7 +27,8 @@ type OrgSync struct {
|
||||
log log.Logger
|
||||
}
|
||||
|
||||
func (s *OrgSync) SyncOrgUser(ctx context.Context, clientParams *authn.ClientParams, id *authn.Identity) error {
|
||||
func (s *OrgSync) SyncOrgUser(ctx context.Context,
|
||||
clientParams *authn.ClientParams, id *authn.Identity, _ *authn.Request) error {
|
||||
if !clientParams.SyncUser {
|
||||
s.log.Debug("Not syncing org user", "auth_module", id.AuthModule, "auth_id", id.AuthID)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user