Tutorial: Build a Secure CRUD App with Symfony and React
This tutorial teaches you how to build a simple CRUD single-page application with a Symfony 4 backend API and a React/Semantic UI frontend.
Tutorial: Build a Secure CRUD App with Symfony and React
This tutorial teaches you how to build a simple CRUD single-page application with a Symfony 4 backend API and a React/Semantic UI frontend.
Gisela Torres
Hi! I had an issue when I include the authentication fragment:
public function index(MovieRepository $movieRepository)
{
if (! $this->isAuthorized()) {
return $this->respondUnauthorized();
}
$movies = $movieRepository->transformAll();
return $this->respond($movies);
}
I get this error when It setups the JWT verifier:
Exception has occurred.
Http\Discovery\Exception\PuliUnavailableException: Puli Factory is not available
BTW I’m using Symfony 4…
any ideas?
Thanks!
Abelardo León González
Hi there!
Thanks for your tutorial. It’s useful and handy.
I would like to know which you refer when wrote:
Make sure you’ve replaced the placeholder client ID and Okta URL with your own above!
What’s OKTA URL: Login redirect URIs?
Thanks in advance!
Best regards.
Lavin
where i found my own Okta parameters?
composer require okta/jwt-verifier spomky-labs/jose guzzlehttp/psr7
Aaron Parecki
The “Login redirect URI” is a setting on your application in the Okta dashboard. You can find that as well as the Client ID in the settings of your application. The Okta URL will look like <a href="https://XXXXXXXX.okta.com/oauth2/default" rel="nofollow noopener" title="https://XXXXXXXX.okta.com/oauth2/default">https://XXXXXXXX.okta.com/o...</a>
which you can find in the API → Authorization Servers tab in Okta.
Aaron Parecki
Once you’ve signed up for an Okta account, you can create an application and get the Client ID and other settings from there. Some of our other blog posts walk through this step by step a little clearer: https://developer.okta.com/…