E1.32 Php Symfony Security Step 13: Modify services.yaml (Wpf, Xamarin, Angular SPA, Reactjs SPA) - chempkovsky/CS2WPF-and-CS2XAMARIN GitHub Wiki

Having a code

  • open the file
    • "AspnetuserViewKeyAuthenticator.php"
      • public function authenticate(Request $request): PassportInterface-method contains the code
    $jwt = (array) JWT::decode(
                $bearer, 
                $this->params->get('jwt_secret'),
                ['HS256']
            );

So we need to define jwt_secret-param in the services.yaml

parameters:
    jwt_secret: MY_SOME_SECRET_HERE