Hello!
Im developing a custom membership provider for my Sharepoint 2013 Web Application,
I configured everything according to multiple tutorials on configuring custom
membership providers and everything works fine on the Central Administration
or the Windows Login version of my custom Application while picking users.
When I try to Log In, I get the error "The server could not sign you in, please check you username and password."
I hooked up de ULS to view the error:
An exception occurred when trying to issue security token: The security token username and password could not be validated..
Event ID: 8306
Since the error (according to the web) could be a lot of things but couldn´t find anything of use, I decided to check if it was a problem with my STS web.config file, but now I know it´s not because I turned on the SQLServer Profiler and I can see my validation query being executed which means I think my configuration is correct.
I also added a machine key line to the STS web.config since I read that could resolve the problem but no luck.
I attempted many configurations for the multiple web.configs to no avail.
I know the STS pool is on and I can browse the web service URL.
I know the executed query in my membership provider returns a user.
In my custom membership provider the only method I need to implement for my login to take effect is ValidateUser(username, password). Is that correct?
Any help is greatly appreciated!!
Also, it´s just a guess but my membership provider doesn´t right now validate a password(I pass the field with random characters since the query only tries to find the username) will this affect the security token generation in any way? (I have already tried inputting random passwords just to fill the field in case it was a required field)