Skip to content

Commit

Permalink
documentation: add Publisher specific configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
colorfield committed May 15, 2023
1 parent ad581d9 commit c325d37
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions apps/silverback-drupal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,30 @@ The scopes are
- Gatsby Build (sourcing) - WIP
- Frontend users, other APIs, ... (project specific)

#### Configuration
#### Generic configuration

- Create a Role for each scope and assign the relevant permissions
- Create a Consumer for each scope
- Publisher do not need to have a specific User set
- Publisher does not need to have a specific user set
- Gatsby Preview and Gatsby Build are using a pre-defined user
- Create Users and assign corresponding roles
- Generate keys `/admin/config/people/simple_oauth`
- Drupal hash salt needs to be at least 32 characters long - make sure to
override `DRUPAL_HASH_SALT` env variable.

#### Publisher configuration

_Consumer_

- Client ID: `publisher`
- Client secret: the one configured in Publisher
- User: none
- Is confidential: `true`
- Is this consumer third party: `true`
- If using `Authorization Code` grant type, for the Publisher consumer, set the
redirect uri to `[publisher_base_url]/oauth/callback`
- Scopes: `Publisher`

_Roles/permissions_

Add the `Grant OAuth2 codes` and `Access Publisher` permissions to relevant
roles (editors, ...)

0 comments on commit c325d37

Please sign in to comment.