Skip to content

Commit

Permalink
Add details about app credentials example
Browse files Browse the repository at this point in the history
  • Loading branch information
jamisonordway committed Apr 25, 2024
1 parent 600841b commit 6a0687a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion module3/lessons/consuming_an_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,12 @@ To set up our API key, complete the following steps:
* Generate what is called a ‘master key’ by running `EDITOR="code --wait" rails credentials:edit` in the command line
* This will create a new key in `config/master.key` and a temporary YAML file which will open in your text editor
* Add your Propublica API Key to the opened file
* Note the indentation in the example below. The tab before `key` is important, as it results in the ability to access this value under a propublica "object".
* The `secret_key_base` value is unique to YOUR repo. Use what is automatically generated and _don't_ copy this one.

```
propublica:
key: asdsa3498serghjirteg978ertertwhter
key: <Your API key here>
# Used as the base secret for all MessageVerifiers in Rails, including the one protecting cookies.
secret_key_base: ugsdfeadsfg98a7sd987asjkas98asd87asdkdwfdg876fgd
Expand Down

0 comments on commit 6a0687a

Please sign in to comment.