Skip to content
Madhumita Subramaniam edited this page Apr 19, 2022 · 5 revisions

Notes for me

  1. Debugging a Python script - Try it out
  2. 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
  1. Interception script - note on "Level" - should be linked to Person Authentication section on Level

  2. Note on jansExternalUid

  3. How user provisioning works - link to the scripts

  4. 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
  1. https://github.com/christian-fei/Simple-Jekyll-Search

Questions for Mike

  1. 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

Clone this wiki locally