Forums BaseTen

Database credentials

Subscribe to Database credentials 6 post(s), 2 voice(s)

 
Avatar Michele Longhi 5 post(s)

Hi

Is it possibile to send login credentials directly by code without presenting the login panel to the user and without rely on keychain?
Thanks

Best regards

 
Avatar Tuukka Norri Administrator 25 post(s)

Hi Michele,
Passing the components in the database URI should do what you want, e.g. pgsql://username:password@host/database

 
Avatar Michele Longhi 5 post(s)

Eh eh…I’m feeling so stupid!

The framework is great! Thanks.
I did an Italian translation of the GUI parts of AppKitFramework and BaseTen Assistent…tell me how and I’ll send them to you.

Best regards

 
Avatar Michele Longhi 5 post(s)

I tried using pgsql://username:password@host/database. Username and password are correctly inserted but the connection panel is still visualized and the user have to press “Connect”.
I’m working on a project with custom login logic, so at the moment what I got are two login prompts. Any suggestion?
Best regards

 
Avatar Tuukka Norri Administrator 25 post(s)

Right, I found a bug there. We’ve mostly been using the Keychain to store passwords, so this didn’t come up earlier. I’ll fix it as soon as I recover from cold.

Best regards

 
Avatar Tuukka Norri Administrator 25 post(s)

Hi again,
The connection panels should now work as you’d like, at least if you call –[BXDatabaseContext setUsesKeychain:] with value NO before connecting. There’s also the possibility to make the connection with -connectAsync instead of -connect:.

If you have a translation, that’s great! Please send it to tuukka.norri@karppinen.fi.

Best regards

Forums BaseTen