Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set session based validation properties #61

Open
joshfoeh opened this issue Jan 15, 2021 · 0 comments
Open

Unable to set session based validation properties #61

joshfoeh opened this issue Jan 15, 2021 · 0 comments

Comments

@joshfoeh
Copy link

Description:
In order to use session based functions, specifically ones that use SessionValidationUtil, it is required that properties are set in identity.xml. The properties that need to be set are described here. For example, SessionBasedValidation.TableSearchURL.

The issue is that there is no relevant config mapping listed in the config-mapping repo. Because of this, when SessionValidationUtil attempts to get any "SessionBasedValidation" config properties they are null.

Suggested Labels:

Suggested Assignees:

Affected Product Version:
Identity Server 5.9.0 and later

OS, DB, other environment details and versions:
5.11.0 running in Docker

Steps to reproduce:

  • Add the session functions JAR to the dropins folder
  • Invoke a function, getSessionData for instance, in the Script Based Adaptive Authentication console
  • NPE is thrown because the URL returned from the properties is null

Snippet of the stacktrace:

java.lang.NullPointerException
	at java.base/java.net.URI$Parser.parse(URI.java:3104)
	at java.base/java.net.URI.<init>(URI.java:600)
	at java.base/java.net.URI.create(URI.java:881)
	at org.apache.http.client.methods.HttpPost.<init>(HttpPost.java:76)
	at org.wso2.carbon.identity.conditional.auth.functions.session.util.SessionValidationUtil.createHttpRequest(SessionValidationUtil.java:158)
	at org.wso2.carbon.identity.conditional.auth.functions.session.util.SessionValidationUtil.getSessionDetails(SessionValidationUtil.java:69)
	at org.wso2.carbon.identity.conditional.auth.functions.session.function.GetSessionDataFunction.getData(GetSessionDataFunction.java:63)

Related Issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant