Skip to content

Implementation for Client Credentials Auth #4

Answered by rhertogh
gthaka asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @gthaka,
The Client Credentials grant type is meant for so called "two-legged OAuth", in other words direct client to server authentication without any end user being involved. Is that what you're trying to achieve? And does your application currently use RBAC?

The sample app also includes a client with the Client Credentials. You can start it in the following way:

  1. Clone the repo: git clone https://github.com/rhertogh/yii2-oauth2-server.git
  2. Change the working directory: cd yii2-oauth2-server
  3. Copy the sample environment file cp .env.example .env
  4. Build the docker containers: docker compose build
  5. Start the docker containers: docker compose up -d
  6. Change the file owner group for the sample…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gthaka
Comment options

Answer selected by gthaka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants