mitreid-connect / OpenID-Connect-Java-Spring-Server

An OpenID Connect reference implementation in Java on the Spring platform.
Other
1.47k stars 767 forks source link

Email case in-sensitive #1558

Closed anandmohan777 closed 2 years ago

anandmohan777 commented 2 years ago

I have a scenario to make email case in-sensitive. Please suggest me to check in mitreid-connect email in lowercase like

select * from account where lower(email) := lower(inputEmail)

or can I implement any filter like

`

?? `
anandmohan777 commented 2 years ago

@jricher Any suggestions around this?

shrexster42 commented 2 years ago

@anandmohan777

You can use users-by-username-query to customize your query as below

<security:authentication-manager id="authenticationManager">
        <security:authentication-provider>
            <security:jdbc-user-service data-source-ref="dataSource" users-by-username-query=""/>
        </security:authentication-provider>
    </security:authentication-manager>

I also suggest to use stackoverflow for questions and open issues only if they are relevant to the project/code