![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 13 Pomógł: 0 Dołączył: 8.04.2019 Ostrzeżenie: (0%) ![]() ![]() |
Wiatm mam problem z uruchomienie przykladowej aplikacji tworzacej REST
https://www.itsolutionstuff.com/post/build-...pleexample.html a wiec Passport Version: 7.5.1 Laravel Version: 5.8 PHP Version: 7.2.22 Database Driver & Version: 10.4.6-MariaDB kroki wykonalem zgodnie z insgrukcja podana w liku wyzej czyli: laravel new project composer require laravel/passport:7.5.1 php artisan migrate php artisan passport:install Dodawanie uzytkownika dziala prawidlowo (endpiont register) ale juz oauth/token uruchamiany w Postmen: (POST) http://localhost:8000/oauth/token?grant_ty...234&scope=* generuje błąd: { "error": "unsupported_grant_type", "error_description": "The authorization grant type is not supported by the authorization server.", "hint": "Check that all required parameters have been provided", "message": "The authorization grant type is not supported by the authorization server." } cokolwiek bym nei zmienil w parametrach, nawet bzdury wpisywal lub wywalil wszytskie parametry błąd zawsze jest ten sam. Podam jeszcze headers jak ustawiam w Postmen User-Agent: PostmanRuntime/7.28.0 Content-Length: 0 Host: <calculated when request is sent> Content-Type: application/x-www-form-urlencoded Accept: application/json W abzie danych powstaja rekordy oauth_clients: 1 Laravel Personal Access Client U3UoVzL1pmSPDfnI0tbhQDSJE0eJSQyNFKtNVGJB http://localhost 1 0 2 Laravel Password Grant Client dkjAWgtHOhL8Pzg0hGLlJjHwoxM7j8FTFnQVK07z http://localhost 0 1 oauth_access_tokens: 47ab2bba2b9e23bcc896f022f98d10361b6627549e9f9db18e8e0f73ab28a4be0d2f6bc8d189b234 1 1 MyApp [] 0 2021-06-09 18:41:37 2021-06-09 18:41:37 2022-06-09 18:41:37 oauth_personal_access_clients: 1 1 2021-06-09 18:40:22 2021-06-09 18:40:22 users 1 user02@email.com user02@email.com $2y$10$qEsQ5edPvyIbQvdp1pEOPOzCkKfG9I6PDuZWPRqqs0rNlwDebMecK 2021-06-09 18:41:37 2021-06-09 18:41:37 Nie potrafie sobie z tym poradzic, pomoze ktos?? |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 18:20 |