[Question] Passport - Password Grant Tokens #625
Replies: 11 comments
-
Hi @edwingromero, I would hesitate to call this an LdapRecord-Laravel issue. Is there a stack trace of this error in your application logs that you can post? |
Beta Was this translation helpful? Give feedback.
-
[2021-06-01 21:15:10] local.INFO: LDAP (ldaps://192.168.30.100:636) - Operation: Binding - Username: **@??.local [previous exception] [object] (League\OAuth2\Server\Exception\OAuthServerException(code: 10): The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. at C:\laragon\www\passport\vendor\league\oauth2-server\src\Exception\OAuthServerException.php:263) |
Beta Was this translation helpful? Give feedback.
-
It looks like Passport is attempting to query for a user in your LDAP server from your |
Beta Was this translation helpful? Give feedback.
-
That's right, I use samaccountname. But for Password Grant Tokens I send the parameters to "/oauth/token" which is a route that passport creates by default. |
Beta Was this translation helpful? Give feedback.
-
Are you certain this |
Beta Was this translation helpful? Give feedback.
-
With or without the method I get the same error. |
Beta Was this translation helpful? Give feedback.
-
Add dd() inside the findForPassport method and nothing happens. It is as if he did not take it into account. Is rare |
Beta Was this translation helpful? Give feedback.
-
Detect dd () in findForPassport when I use the provider "user". When I use the provider "ldap" it does not detect it and the usual error appears. |
Beta Was this translation helpful? Give feedback.
-
You're going to have to help me out a bit here -- I'll either need you to create and post a link to a GitHub repository with the exact steps to recreate this issue, or dive deep into Laravel Passport and see what the issue may be and then let me know if it's a bug I have to fix 👍 |
Beta Was this translation helpful? Give feedback.
-
Ok |
Beta Was this translation helpful? Give feedback.
-
Hello, sorry for the delay. This is the repository. You just have to put the ldap variables in the .env file |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How about guys?
I am trying to use passport and ldap in a project.
Everything works perfect with "Personal Access Token".
But when I try to create "Password Grant Tokens" I get the following error.
Beta Was this translation helpful? Give feedback.
All reactions