Hi,
I need to add relaystate property so should I add property "saml.sp.use.relaystate": true in SAML Authentication Handler configuration file
com.adobe.granite.auth.saml.SamlAuthenticationHandler~okta.saml.cfg.json:
......
"addGroupMemberships": true,
"defaultGroups": ["administrators"],
"saml.sp.use.relaystate": true
}
or should i add in
userAuthService.java:
...............................
boolean useRelayState = true;
@ObjectClassDefinition(name = "dCloud UserAuthService Config", description = "OSGi Service providing UserAuthService config")
@interface Config {
@AttributeDefinition(name = "Login Redirection Path", description = "Login Redirection Path")
String loginRedirectionPath() default "xxx";
@AttributeDefinition(name = "Forbidden Path", description = "Forbidden Path")
String forbiddenPath() default "/en/forbidden.html";
boolean useRelayState() default true;
}
@Activate
protected void activate(Config config) {
loginRedirectionPath = config.loginRedirectionPath();
forbiddenPath = config.forbiddenPath();
useRelayState = config.useRelayState();
}
let me know which one is correct?
Thanks in advance