The only way I see is to ignore the routes and override them.
Disabling or Restricting the JSON API Route for Creating a Client in Passport
Hello,
I'm looking to disable the routes that create, edit, and delete clients for Passport. If that's not possible, I'd like to restrict the app creation process. I believe the current unrestricted mode might not be suitable for my use case.
I've extended the ClientRepository class and created a dashboard to manage these client CRUD operations. However, the JSON API routes at oauth/clients are accessible to any logged-in user, and there's a chance that someone with a bit of expertise could send a request to this route, potentially bypassing my client creation rules.
I'm using Laravel 9. Thank you for your attention.
Please or to participate in this conversation.