Hello All,
I am trying to implement a custom assertion generator plugin i.e. Plug in Class. The class seems to be loaded fine, but it's giving me below Value/error in the SMPS.log .
Below is the sample code:-
public class ClassName
implements AssertionGeneratorPlugin
{
public boolean init(APIContext apiContext)
throws Exception
{
apiContext.error("ClassName initialized.");
return true;
}
public boolean release(APIContext apiContext)
throws Exception
{
apiContext.error("ClassName unloaded.");
return true;
}
public int customizeAssertion(APIContext apiContext, UserContext userContext, String pluginParam, String inputResponse, StringBuffer outputResponse)
throws Exception
{
if ((inputResponse == null) || (inputResponse.equals("")))
{
apiContext.log("ClassName: No input assertion received:");
return -1;
}
Values/Error in SMPS.Log:-
[17260/43][Tue Nov 07 2017 06:25:40][SmAuthUser.cpp:691][ERROR][sm-Server-02740] Classname initialized.
[17260/43][Tue Nov 07 2017 06:25:40][SmAuthUser.cpp:685][INFO][sm-Server-03580] ClassName: No input assertion received:
This means that the Plugin is loaded fine, hence could see Classname Initialized, but if ((inputResponse == null) || (inputResponse.equals(""))) is getting logged as ClassName: No input assertion received . Which seems that inputResponse is null and it's not receiving any SAML Assertion to edit, But i could see SAML assertion generated fine after authetication and strangely inputResponse is null.
What could be possible reason for that?
Your Help would be appreciated.
Thank You
Ankur