-
-
Notifications
You must be signed in to change notification settings - Fork 551
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
Unable to log in using oAuth #4574
Comments
@DaveWebb2 There must be something missed. |
@nilsteampassnet thanks for the reply. I don't have the second permission called "Teampass (1)" at the bottom. How did you add that in? I don't seem to be able to find it when adding a permission. Other than that, everything else matches yours. |
@DaveWebb2 |
@nilsteampassnet thanks for getting back to me. That wasn't an option, so I had to go into the App Registrations -> TeamPassv3 -> Expose an API -> Add a scope within Entra ID, and then I could select it. Unfortunately, oAuth still fails with the error "User is not allowed to authenticate with Teampass application" Should I manually create the user in TeamPass first? If so, should it use the email address as the username? |
@nilsteampassnet ignore the previous comment - I have managed to log in using oAuth! I had to create the user with a username to match the SAMAccountName rather than the email address. However, each user that now logs in using oAuth gets prompted with this message: "For the first SSO connection, please provide your previous password" No matter what is entered for the previous password, it reject it with this message: "Login credentials do not correspond" We can get passed this by clicking close, but it appears again at every logon. Also, once logged in, no passwords can be seen - click in the eye symbol returns the message "Item has no password" but it was created with a password. Finally, the users all see a little ringing bell icon that shows this message when hovered over: "It seems your password has changed and Teampass requires it to encrypt your master private key". Choosing the "Generate new keys" option doesn't seem to do anything. |
@nilsteampassnet for the users I have tried to generate new OTP codes, and then when I try to log in, after it has completed "Account in construction", I enter the code and it always says Bad Code. What's the secret to getting this to work? I have also tried to use the 'Generate new keys' option as the user but that doesn't work either. |
Page on which it happened
index.php
Steps to reproduce
Expected behaviour
User should log in to TeamPass
Actual behaviour
User enters credentials for Entra ID then gets back to the TeamPass login screen. The address in the address bar contains this:
"The application asked for scope openid profile email User.Read Group.Read.All that doesn't exist on the resource"
I have double-checked that the permissions in the App registration are correct as per the documentation, and my user account has access to the application.
Server configuration
Operating system: Linux mytp_c263afeadb 5.15.164.1-1.cm2 #1 SMP Sun Aug 18 19:16:21 UTC 2024 x86_64
Web server: nginx/1.26.1
Database: 8.0.39-azure
PHP version: 8.3.9
Teampass version: 3.1.3.10
Teampass configuration variables:
Updated from an older Teampass or fresh install:
Client configuration
Browser: Chrome - 132.0.0.0
Operating system: Windows - 64bits
Logs
Web server error log
Teampass 10 last system errors
Log from the web-browser developer console (CTRL + SHIFT + i)
The text was updated successfully, but these errors were encountered: