By: Shikha Mishra Account Admin 16 Aug 2017 at 3:39 a.m. CDT

1 Response
Shikha Mishra gravatar
We have integrated Salesforce, serviceNow and gsuite application with gluuserver. I referred https://gluu.org/docs/ce/3.0.1/operation/logout/. Can you please give a example how to implement application-session-script to end SP application sessions . `from org.xdi.model.custom.script.type.session import ApplicationSessionType from org.xdi.util import StringHelper, ArrayHelper from java.util import Arrays, ArrayList import java class ApplicationSession(ApplicationSessionType): def __init__(self, currentTimeMillis): self.currentTimeMillis = currentTimeMillis def init(self, configurationAttributes): print "Application session. Initialization" print "Application session. Initialized successfully" return True def destroy(self, configurationAttributes): print "Application session. Destroy" print "Application session. Destroyed successfully" return True def getApiVersion(self): return 1 # Application calls it at end session request to allow notify 3rd part systems # httpRequest is javax.servlet.http.HttpServletRequest # authorizationGrant is org.xdi.oxauth.model.common.AuthorizationGrant # configurationAttributes is java.util.Map<String, SimpleCustomProperty> def endSession(self, httpRequest, authorizationGrant, configurationAttributes): print "Application session. Starting external session end" print "Application session. External session ended successfully" return True`

By Mohib Zico Account Admin 16 Aug 2017 at 3:45 a.m. CDT

Mohib Zico gravatar
[Here](https://wiki.shibboleth.net/confluence/display/IDP30/LogoutConfiguration "enter image title here") is official shibboleth doc.