Class: Doorkeeper::Config::Builder
- Inherits:
-
Object
- Object
- Doorkeeper::Config::Builder
- Defined in:
- lib/doorkeeper/jwt_assertion.rb
Instance Method Summary collapse
- #jwt_enable(flag) ⇒ Object
- #jwt_private_key(key_file, passphrase = nil) ⇒ Object
- #jwt_secret(key) ⇒ Object
Instance Method Details
#jwt_enable(flag) ⇒ Object
45 46 47 |
# File 'lib/doorkeeper/jwt_assertion.rb', line 45 def jwt_enable(flag) enable_jwt if flag end |
#jwt_private_key(key_file, passphrase = nil) ⇒ Object
40 41 42 43 |
# File 'lib/doorkeeper/jwt_assertion.rb', line 40 def jwt_private_key(key_file, passphrase = nil) key = OpenSSL::PKey::RSA.new(File.open(key_file), passphrase) set_jwt(key) end |
#jwt_secret(key) ⇒ Object
36 37 38 |
# File 'lib/doorkeeper/jwt_assertion.rb', line 36 def jwt_secret(key) set_jwt(key) end |