How to add additional request parameters in wso2 retrying?

Viewed 249

I need to add one parameter to redirect. When authentication fails WSO2 redirects to login page with &authFailure=true&authFailureMsg=login.fail.message request parameters.

I could not add some additional parameter to it by changing org.wso2.carbon.identity.application.authenticator.basicauth.BasicaAuthenticator class messages.

Are there any ways of doing it?

2 Answers

Also, in a very easy way, can be modified the login.jsp file located on:

<WSO2_APIM_HOME>/repository/deployment/server/webapps/authenticationendpoint/login.jsp

and you can do it without build any custom authenticator and redeployment. It is hot deploy.

It is also important to modify this file carefully, as it is used by all login flows on the platform

I could not change BasicAuthenticator.class. Added additional parameters by registering my LocalBasicAuthenticator where functions are the same as BasicAuthenticator but you can add query params and modify it. Then replace jar in components/dropins and change local authentication in your Service Provider.

Related