CE-882 Add customizer.finalCustomizeSession, to do ... final ... customizaions if needed

This commit is contained in:
2024-04-28 20:29:00 -05:00
parent c05a1d5812
commit e9cfb67101
2 changed files with 29 additions and 1 deletions

View File

@ -52,4 +52,14 @@ public interface QAuthenticationModuleCustomizerInterface
//////////
}
/*******************************************************************************
**
*******************************************************************************/
default void finalCustomizeSession(QInstance qInstance, QSession qSession)
{
//////////
// noop //
//////////
}
}

View File

@ -230,6 +230,14 @@ public class Auth0AuthenticationModule implements QAuthenticationModuleInterface
}
}
//////////////////////////////////////////////////////////////
// allow customizer to do custom things here, if so desired //
//////////////////////////////////////////////////////////////
if(getCustomizer() != null)
{
getCustomizer().finalCustomizeSession(qInstance, qSession);
}
return (qSession);
}
else if(CollectionUtils.containsKeyWithNonNullValue(context, BASIC_AUTH_KEY))
@ -284,7 +292,17 @@ public class Auth0AuthenticationModule implements QAuthenticationModuleInterface
// try to build session to see if still valid //
// then call method to check more session validity //
/////////////////////////////////////////////////////
return buildAndValidateSession(qInstance, accessToken);
QSession qSession = buildAndValidateSession(qInstance, accessToken);
//////////////////////////////////////////////////////////////
// allow customizer to do custom things here, if so desired //
//////////////////////////////////////////////////////////////
if(getCustomizer() != null)
{
getCustomizer().finalCustomizeSession(qInstance, qSession);
}
return (qSession);
}
catch(QAuthenticationException qae)
{