问题
I have found that my users are sometimes entering a trailing space after their username. This happens most often when copy & pasting their user name from an email or other electronic document.
What happens is that the server will trim that space when authenticating that user, which then succeeds, but will not trim that space with retrieving claim values, which then fails.
The result is that the user is passed to the service provider and then the service provider reports they do not exist.
Is there a way to trim those spaces so that both the authentication and claims processes work?
WSO2 Identity Server 5.1.0
Thanks, pat
来源:https://stackoverflow.com/questions/39181691/trailing-spaces-when-authenticating-to-wso2-identity-server