laravel / passport

Laravel Passport provides OAuth2 server support to Laravel.
https://laravel.com/docs/passport
MIT License
3.28k stars 777 forks source link

404 Not Found | Fresh install laravel 5.8 #1015

Closed jeraldpunx closed 5 years ago

jeraldpunx commented 5 years ago

I've follow the guide from laravel documentation https://laravel.com/docs/5.8/passport , but it gave me a 404 not found.

This is my route list, it is listed there /oath/token but when I access it on postman, it return me as 404 not found.

enter image description here

enter image description here


enter image description here

This is my current public/.htaccess

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
driesvints commented 5 years ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.

jeraldpunx commented 5 years ago

Sorry I need to closed this, it's oauth not oath

Atom-Technologies commented 5 years ago

Solutions? Anybody?

webwizard02 commented 5 years ago

Hello! I also encountered this problem before. Please check your Apache's httpd.conf file. Make sure that you enabled the LoadModule rewrite_module modules/mod_rewrite.so by removing the # from the start line of the code.

And also change inside the httpd.conf from Require all denied to Require all granted, AllowOverride All, and Options Indexes FollowSymLinks

Like This: Capture

hoangngoclam commented 4 years ago

I have a save problem, I run "php artisan serve" and it oke

HashmatWaziri commented 4 years ago

Hello! I also encountered this problem before. Please check your Apache's httpd.conf file. Make sure that you enabled the LoadModule rewrite_module modules/mod_rewrite.so by removing the # from the start line of the code.

And also change inside the httpd.conf from Require all denied to Require all granted, AllowOverride All, and Options Indexes FollowSymLinks

Like This: Capture

Man, after 6 hours managed to find this solution. Thanks a lot. Worked like a charm.

ghost commented 3 years ago

7backpage.com Most of you might have already have heard about Craigslist, Craigslist is one of the best backpage alternative sites. In fact Craigslist was one of the very first sites that have started classified-ads and soon it expanded to many categories. Craigslist remains one of the most visited website in the world, it offers services in over 100+ countries. The good thing about Craigslist is you don’t have to pay a cent or penny to post ads on the website