Hi Devs,
I'm trying to assign a query parameter to the request during the
authentication flow, but I couldn't find a reference on how to do this.
function onLoginRequest(context) {
if (context.request.params.prompt != null &&
context.request.params.prompt[0].equals("login")) {
executeStep(1, {
authenticationOptions: [{authenticator: 'basicauth'}]
}, {});
} else {
*//assign the prompt value as login and send to the authenticator in the
authentication flow*
}
}
In the above, I need to complete the commented else part in order to force
the re authentication if the prompt value is missing. Is this possible OOB
with adaptive scripts ?
Thanks
--
Prakhash Sivakumar
Senior Software Engineer | WSO2 Inc
Platform Security Team
Mobile : +94771510080
Blog : https://medium.com/@PrakhashS
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev