Is it possible in GeoServer that instead of using .xml to save all user’s credentials can I use PostgreSQL, and then use those credentials to login?

PS: I tried JDBC driver, but not working. I can see new users getting created in the database, but I'm not able to use those credentials to log in

enter image description here



You need to be sure you are using the JDBC AUthentication provider correctly. These training notes from GeoSolutions walk you through the set up.

JDBC Authentical provider enter image description here

Roles created enter image description here

  • Yeah, so when I create connection, I’m able to use PostgreSQL credentials to log in, but when I create new user in geoserver, then I can’t login using his credentials Feb 16 at 17:36
  • please update your question using the edit link to add details of how you have set your authentication providers (it sounds like there is one before the JDBC one)
    – Ian Turton
    Feb 16 at 17:37
  • Hi Ian, I have added some screenshots, Please let me know if you need anything else. Feb 17 at 7:28
  • @IanTurton are we required to manually add the users to geoserver, or are they materialized when establishing the jdbc authentication provider (in our case postgresql with existing users)?
    – user25976
    Aug 3 at 21:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.