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
routes not mounted #8
Comments
The route are mounted in Dusterio\LumenPassport\PassportServiceProvider. passport:install configure the keys to use when generating token. passport:migrate generate the db-table requred from passport. |
can you give me whole source code of lumen with running passport please? I tried thrice time But I failed. |
https://github.com/dusterio/lumen-passport/blob/master/src/PassportServiceProvider.php you can find the passport source code in vendor/laravel/passport |
When I am installing the package it shows me the following message after installation of package. phpseclib/phpseclib suggests installing ext-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.) |
those are only suggestion package. Nothing blocking. you can install them if you want or not. |
Thank you dear. I reached to the final stage. one more help please sorry for asking again and again. here is my route.php post('/oauth/token', '\Laravel\Passport\Http\Controllers\AccessTokenController@issueToken'); it gives me the error. Class App\Http\Controllers\Laravel\Passport\Http\Controllers\AccessTokenController does not exist how to access those classes as they are in vendor folder? |
passport routes are already configured. You just have to use them. They are already registered |
Just WoW brother Thanks alot. its magic 👯♂️ nothing to do. Thanks @paolopiccinini and @dusterio |
How to issue token? Should I pass parameters with the the issueToken route? |
For example |
ok Thanks alot. :) |
hello, i already follow all the steps but i have same issue here, it brings me http not found exception._. can you help me? i can't access the token, everytime i want to get the token with post localhost:8000/oauth/token and raw body i can't. It bring me to http not found exception. What happened? |
Did you registered the routes correctly? See https://github.com/dusterio/lumen-passport#registering-routes |
you have to point in your application root localhost:8000/oauth/token it's missing your app localhost:8000/[app-root]/oauth/token |
I'm having the same issue. I have tried Lumen 5.4 & 5.5. @paolopiccinini how to get the Application-Root? Please point out. PLEASE HELP @dusterio @kiddyatreides @rajaunleashed @andrew-s |
try using |
hello , i have same issue |
@ahmdabos what Lumen version are you using and what lumen-passport package version? |
lumen is 5.4 and lumen passport is latest |
I'm really having trouble @dusterio Class App\Http\Controllers\Dusterio\LumenPassport\Http\Controllers\AccessTokenController does not exist |
got same issue, I've to downgrade to 0.2.0 to avoid this |
@tshwangq @Jvgm @NathanMacedo hmm that's very strange - I tested on both 5.4 and 5.5, my route:list displays correct namespace: Are you sure you have the lastest Lumen Passport? There was an issue from another PR that I fixed recently. If you are sure it's the latest version, can you show how and where you run LumenPassport::routes() call? |
Follow this link Only one change you have to do is in the Registering Routes Step
Also in bootstrap/app.php =================================================== If your php artisan route:list is not working then
|
this is the similar issue with routes and might help someone depending on thier versions of Lumen, LaravelPassport and LumenPassport: |
Hi,
I followed all the steps but the routes are not mounted there in lumen route folder?
I didn't understand this line? I think I am doing something wrong after the passport:install command.
"Adding this service provider, will mount the following routes:"
What's the meaning of this line?
The text was updated successfully, but these errors were encountered: