Skip to content

Commit

Permalink
feat(jans-setup): added modifyActiveSessionsResponse to sample script
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriyz committed Dec 29, 2021
1 parent 47e75c6 commit ae55904
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions static/extension/application_session/SampleScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ def endSession(self, httpRequest, sessionId, configurationAttributes):
print "Application session. External session ended successfully"
return True

# Application calls it during /session/active endpoint call to modify response if needed
# jsonArray is org.json.JSONArray
# context is io.jans.as.server.model.common.ExecutionContext
def modifyActiveSessionsResponse(self, jsonArray, context):
return False

def isFirstSession(self, user_name):
tokenLdap = TokenEntity()
tokenLdap.setDn(self.staticConfiguration.getBaseDn().getClients())
Expand Down

0 comments on commit ae55904

Please sign in to comment.