phantomate / Untare

Flutter app for tandoor recipes
GNU General Public License v3.0
105 stars 11 forks source link

Connecting to a social account that has a password denies login #69

Open delize opened 9 months ago

delize commented 9 months ago

Bug Summary

When trying to connect to a social account that has a password attached, I constantly receive an error message stating unable to login.

However when logging in directly to recipes with that same account and password, I have no issues.

My username is in the format: User@domain.com

Screenshot_20240128-150710

Reproduction Steps

Create social user Set password Login via app

Expected Results

Be able to login

Actual Results

Unable to login

Checklist

delize commented 9 months ago

Apologies for the lack of initial information. Was out at the grocery store when I was trying to use the app, and hadn't tested before hand.

The frontend server's access logs:

162.158.222.126 - - [28/Jan/2024:16:32:31 +0100] "POST /api-token-auth/ HTTP/2.0" 200 145 "-" "Dart/3.1 (dart:io)"
162.158.222.126 - - [28/Jan/2024:16:32:31 +0100] "GET /api/user/ HTTP/2.0" 403 63 "-" "Dart/3.1 (dart:io)"

Recipe's docker logs:

WARNING:django.request:Bad Request: /api-token-auth/
172.26.0.11 - - [28/Jan/2024:16:33:34 +0100] "POST /api-token-auth/ HTTP/1.1" 400 68 "-" "Dart/3.1 (dart:io)"
phantomate commented 9 months ago

Hi. the app can't use social logins atm, because the tandoor recipes api doesn't support it

delize commented 9 months ago

Even when using a password to login and not the oidc/social transaction?

I've also tried using the superadminuser and I'm still unable to login with a non-social account.

So I don't think it's purely a social account situation in this case.

delize commented 9 months ago

I am aware of #63

phantomate commented 8 months ago

Hm thats strange, are you sure you have SSL enabled or is it just http for you?

delize commented 8 months ago

I am accessing it outside of the home network, so https/TLS is absolutely enabled for the domain.