Skip to content

Commit

Permalink
Add warning for encryption_method
Browse files Browse the repository at this point in the history
  • Loading branch information
nbulaj committed Aug 12, 2024
1 parent 8ce1c09 commit 818e76d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ project adheres to [Semantic Versioning](http://semver.org/).

## master

- Rename encryption_method to signing_method [#53](https://github.com/doorkeeper-gem/doorkeeper-jwt/pull/53)

### Fixed

- Fixed default token generation to return a random hex value [#56](https://github.com/doorkeeper-gem/doorkeeper-jwt/pull/56)
Expand Down
1 change: 1 addition & 0 deletions lib/doorkeeper/jwt/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def secret_key_path(value)
# For backward compatibility. This library does not support encryption.
def encryption_method(value)
@config.instance_variable_set("@signing_method", value)
Kernel.warn("[DOORKEEPER-JWT]: Please use signing_method instead, this option is deprecated and will be removed soon")
end

def signing_method(value)
Expand Down

0 comments on commit 818e76d

Please sign in to comment.