Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

update README, example code how to configure a public key #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,12 @@ You can specify any of the algorithms supported by the
[jwt](https://github.com/jwt/ruby-jwt) gem.

If the algorithm you use requires a public key, you also need to set
`token_public_key` in the initializer.
`token_public_key` in the initializer:
```
# example for RS256
config.token_signature_algorithm = 'RS256'
config.token_public_key = OpenSSL::PKey::RSA.new File.read(File.join(Rails.root, 'public_key.pem'))
```

## CORS

Expand Down