thephpleague / oauth2-server-bundle

Symfony bundle for the OAuth2 Server.
MIT License
176 stars 86 forks source link

Configuring client_id and client_secret #154

Closed damc closed 3 months ago

damc commented 11 months ago

Hello,

I'm currently integrating league/oauth2-server with Symfony and have encountered an issue where I'm unsure about how to configure the client_id and client_secret for OAuth clients. I've browsed the documentation, but couldn't find a clear section or example that explains this.

Specifically, I'm facing the following error when trying to authenticate:

{"error":"invalid_client","error_description":"Client authentication failed","message":"Client authentication failed"}

While I understand this typically indicates a missing or incorrect client configuration, I'm unsure about where and how to set this up in the context of league/oauth2-server and its integration with Symfony.

Could you please provide guidance or enhance the documentation to clarify the following:

  1. How and where to register and configure OAuth clients with their client_id and client_secret.
  2. Any Symfony-specific configurations or steps that need to be taken to ensure smooth integration.

Thank you for your assistance and for the great work on this library!

damc commented 11 months ago

Resolved:

There is a command that comes with the bundle that creates a new client.

chalasr commented 3 months ago

Thanks for sharing your solution.