Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication loop during database connection #1

Open
PerplexedFox opened this issue Feb 19, 2020 · 1 comment
Open

Authentication loop during database connection #1

PerplexedFox opened this issue Feb 19, 2020 · 1 comment

Comments

@PerplexedFox
Copy link

PerplexedFox commented Feb 19, 2020

I've loaded the finished DVDRental demo app with

  git clone -b branches/10-customized \
                  https://github.com/DirectToSwift/DVDRental.git 

as well as tried it with

git clone -b branches/01-default-rulemodel \
       https://github.com/DirectToSwift/DVDRental.git

(see http://www.alwaysrightinstitute.com/directtoswiftui/) and restored the demo database. Currently, I am trying to execute the app, following the instructions on http://www.alwaysrightinstitute.com/directtoswiftui/ and ReadMe from https://github.com/DirectToSwift/DVDRental. Which means I have named the database accordingly and built the app. In fact, you should only install the database, download the project and it should be running without any change. However, the app remains on the launch screen, showing a "connecting database" message.

Through an exhaustive debugging process, I came to the conclusion that there is something wrong with the authentication. However, I could not determine what exactly goes wrong.

Is there anybody who tried it and it worked?

Using:

Xcode 11.3.1; Swift 5; iOS 13; Postgres.app Version 2.3.3e; PostgreSQL 12

Any idea how to solve the problem?

Update: there is no problem with the database. I can connect via psql, clients such as postico or navicat, or with my own apps using PostgresClientKit. The problem has been tracked down to the authentication process. Therefore I'm pretty sure that the problem lies somewhere there

Edit: while we're at it, is there a way to set the logger? I couldn't find a way (where and how) to get the messages

@helje5
Copy link
Member

helje5 commented Feb 19, 2020

Right, it is quite possible that I didn't have auth on. I'll see whether I can give it a try on the weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants