-
-
Notifications
You must be signed in to change notification settings - Fork 552
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
Item has no Password - Oauth user #4572
Comments
thank you @hitenmandalia for the details you provided here. |
Please update to 3.1.3.13. |
Updated to 3.1.3.13. but no luck. Now I am not able to even see the items that were previously created. All folders show no items available. But now it also seems to have broken oauth user creation. As per my previous test, i created a new item and confirmed i was able to see it as myself and as another user. I then deleted one of the user accounts and tried to register again using oauth. However, I am now just getting the following every time i try to register an oauth account: Because of this, I am unable to test any further. |
I don't see how this possible, the change is only on the identification part. I don't even understand the other issue encountered. The change consists only in typing variables, nothing on the logic. |
I'm pretty sure it is related to server configuration. |
@nilsteampassnet I am using the latest docker image - richarvey/nginx-php-fpm which is using nginx and php version 8.2. Everything else about my install is standard. Build exactly as per the docker file in the teampass repo. I will try and do this on a fresh install tomorrow and update you with my findings. If there is something you would like for me to do / test then let me know. |
Please wait until I provide new fix. |
@hitenmandalia Find
Replace by
Then create new oauth2 user |
Same issue im afraid. nothing in the logs either happy to do a screen share if that works for you? |
As i had some time to spare, I done a new Fresh install of teampass 3.1.3.13. Still the same issue with Login Credentials do not correspond. I tried it with the default identify.php and also with the chanes you suggested here:
However, still getting the same Login Crendentials do not Correspond. FYI nginx version 1.24.0 and PHP version 8.2.7 |
@hitenmandalia and with 3.1.3.12, it is ok? |
@nilsteampassnet I will try that out shortly and get back to you. i will do this with my fresh install. |
In file sources/identify.php,
|
so here are my findings. commit SHA 6680570 (on 8th Feb) only works when I make the changes as described in this issue: #4440. Once i add the (bool) as below, the user gets created. $data['oauth2_user_to_be_created'] = (bool)$oauth2_enabled === true && DB::count() === 0 && $oauth2LoginOngoing === true ? true : false; commit SHA 545597a it does not work. For the following, do you want me to attempt this for version 3.1.3.13? in the default identify.php? or with the modifications you had me do earlier?
|
the last point on latest version |
ok, trying now |
@nilsteampassnet still same issue. Login Credentials do not Correspond |
I have just discovered what i think is quite a huge bug.
I have deployed TeamPass 3.1.3.10. This is a FRESH install ( i have another copy of 3.1.3.10 running in production where this bug was discovered so I have also deployed a fresh version to see if this bug was also present in a new install)
I have successfully configured oauth with Azure. Issues are as below:
When logging in as an oauth user, the account always remains in "Account in Construction", however, I am able to use all functions of teampass without any problems it seems.
Using the oauth user, I am able to create items in TeamPass as expected.
However, a major issue i discovered. Any oauth user who is created AFTER the item has been created will always get an "Item has no password" error. This is not true for local users who always seem to be able to retrive the password with the same role.
As a test, i did the following too:
I created a local teampass user with the same role assigned to the oauth user. The local user account is succesfully created and doesnt show the Account in construction message. The local user is also able to see the password to the item that was created.
No errors or anything obvious show in logs or in the developer console of the browser that would point to anything.
Using Alpine Linux Docker container with AWS RDS MySQL 8.
The text was updated successfully, but these errors were encountered: