We have our security configured to use an Identity Provider, and we have a custom module that contains a script that gets the roles from the SAML response. We call this script in the attribute mapping for "Roles" via the "RunScript" expression function. When this call is made, we pass the SAML response and the hostname as parameters. That function works.
What I am trying to do now is pass the project name as an additional parameter by calling our module script like this: runScript("system.idp.processIdpResponse(samlResponse, system.net.getHostName(),system.project.getProjectName())")
The issue I am running into is trying to use this with project inheritance, we have a "Master" project, and a inherited "Client" project. When I fire the command system.perspective.login() from the "Client" project, the system.project.getProjectName() returns back "Master" instead of "Client".
When system.perspective.login() occurs inside of the "Client" project, is there a way to determine which project that command came from? Is there a way to get that in the ClientHook of the module via the SDK?