Hi Rob,
Yes that is what the Challenge Auth status is meant to do.
These parts of the SDK are not documented as well as they should be.
I hope the below snippet helps:
PS: I am with the CA Global Delivery group, Ca's Professional Services group.
If you need assistance writing a custom Auth Scheme, we are available (for a fee).
Good Luck,
Joe O'Donnell
public SmAuthenticationResult authenticate(String parameter, String secret, int challengeReason,
SmAuthenticationContext context)
{
// cannot do authentication without the authentication context
if (null == context)
{
//logWriter.println("auth nullcontext");
return new SmAuthenticationResult(SmAuthStatus.SMAUTH_NO_USER_CONTEXT, SmAuthenticationResult.REASON_NONE);
}
.
.
.
context.setErrorText( newFccUrl);
return new SmAuthenticationResult (SmAuthStatus.SMAUTH_CHALLENGE , SmAuthenticationResult.REASON_ERROR_MESSAGE_IS_REDIRECT);
}