-
Notifications
You must be signed in to change notification settings - Fork 0
TODOs
Madhumita Subramaniam edited this page Apr 19, 2022
·
5 revisions
- Debugging a Python script - Try it out
- Logout steps to be documented better
we can trigger it call from /logout.htm
Also there is another script io.jans.model.custom.script.type.session.ApplicationSessionType
It has 2 mehods startSession/endSession. Server calls endSession when we send request to endSessionEndpoint
Also there are 2 new methods onEvent/modifyActiveSessionsResponse in it
-
Interception script - note on "Level" - should be linked to Person Authentication section on Level
-
Note on
jansExternalUid
-
How user provisioning works - link to the scripts
-
close with yurem - Move this to java side
def getLocalPrimaryKey(self):
entryManager = CdiUtil.bean(PersistenceEntryManager)
config = GluuConfiguration()
config = entryManager.find(config.getClass(), "ou=configuration,o=jans")
#Pick (one) attribute where user id is stored (e.g. uid/mail)
# primaryKey is the primary key on the backend AD / LDAP Server
# localPrimaryKey is the primary key on Gluu. This attr value has been mapped with the primary key attr of the backend AD / LDAP when configuring cache refresh
uid_attr = config.getIdpAuthn().get(0).getConfig().findValue("localPrimaryKey").asText()
print "Casa. init. uid attribute is '%s'" % uid_attr
return uid_attr
-
Should all custom scripts implement Logout? Incase of Social login, it may be not appropriate to sign out of the social login site because there may be other apps which are using the same session