From 33b6658c6b0ad7990a6bdd4dee1d25ed4a7de4b6 Mon Sep 17 00:00:00 2001 From: josue2591 Date: Fri, 1 Nov 2024 15:44:56 -0600 Subject: [PATCH 1/3] feat: readme updated --- README.md | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 498cb57..2d660b6 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,68 @@ See Date: Mon, 18 Nov 2024 17:24:51 -0600 Subject: [PATCH 2/3] feat: update hash doc added --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 2d660b6..83f82eb 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,13 @@ Manually applying the recipe to your own project: From your webroot run: - Create an oauth folder in the private files directory: `web/sites/default/files/private/oauth` - Go to `/admin/config/people/simple_oauth` click Generate keys, set the Directory for the keys to `/app/web/sites/default/files/private/oauth`, generate, and save the configuration. +## Setting Up hash_salt +- Run lando `lando drush php-eval 'echo \Drupal\Component\Utility\Crypt::randomBytesBase64(55) . "\n";' | pbcopy`. [See more](https://blokspeed.net/2018/quick-tip-generating-hash-salt-drupal-8) +- Go to `web/sites/default/settings.php` and paste the output from the previous command into the hash_salt setting. +``` + $settings['hash_salt'] = 'OUTPUT'; +``` + ### Create Role for GraphQL API - Create a role with these permissions (e.g., GraphQL API): - GraphQL Compose - Server: Execute arbitrary requests From e49865ad6bbbc31f4dc306f3f2f0904656ebb3b9 Mon Sep 17 00:00:00 2001 From: josue2591 Date: Tue, 19 Nov 2024 09:13:53 -0600 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 83f82eb..4614516 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Manually applying the recipe to your own project: From your webroot run: - Go to `/admin/config/people/simple_oauth` click Generate keys, set the Directory for the keys to `/app/web/sites/default/files/private/oauth`, generate, and save the configuration. ## Setting Up hash_salt -- Run lando `lando drush php-eval 'echo \Drupal\Component\Utility\Crypt::randomBytesBase64(55) . "\n";' | pbcopy`. [See more](https://blokspeed.net/2018/quick-tip-generating-hash-salt-drupal-8) +- Run `lando drush php-eval 'echo \Drupal\Component\Utility\Crypt::randomBytesBase64(55)' | pbcopy`. [See more](https://blokspeed.net/2018/quick-tip-generating-hash-salt-drupal-8) - Go to `web/sites/default/settings.php` and paste the output from the previous command into the hash_salt setting. ``` $settings['hash_salt'] = 'OUTPUT';