Skip to content

Commit

Permalink
Add link to supported algorithms in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
waiting-for-dev committed Feb 23, 2020
1 parent 2428dab commit 6f07cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ end
**Important:** You are encouraged to use a dedicated secret key, different than others in use in your application. If several components share the same secret key, chances that a vulnerability in one of them has a wider impact increase. Also, never share your secrets pushing it to a remote repository, you are better off using an environment variable like in the example.

Currently, HS256 algorithm is the default.
Configure the matching secret and algorithm name to use a different one (e.g. RS256)
Configure the matching secret and algorithm name to use a different one (e.g. RS256) (see [ruby-jwt](https://github.com/jwt/ruby-jwt#algorithms-and-usage) to see which are supported)
```ruby
Warden::JWTAuth.configure do |config|
config.secret = OpenSSL::PKey::RSA.new(ENV['WARDEN_JWT_SECRET_KEY'])
Expand Down

0 comments on commit 6f07cd0

Please sign in to comment.