Class: Doorkeeper::Config::Builder
- Inherits:
-
Object
- Object
- Doorkeeper::Config::Builder
- Defined in:
- lib/doorkeeper/jwt_assertion.rb
Instance Method Summary collapse
Instance Method Details
#jwt_private_key(key_file, passphrase = nil) ⇒ Object
45 46 47 48 |
# File 'lib/doorkeeper/jwt_assertion.rb', line 45 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
41 42 43 |
# File 'lib/doorkeeper/jwt_assertion.rb', line 41 def jwt_secret( key ) set_jwt(key) end |