class Doorkeeper::JWT::Config::Builder
Public Class Methods
new(&block)
click to toggle source
# File lib/doorkeeper/jwt/config.rb, line 21 def initialize(&block) @config = Config.new instance_eval(&block) end
Public Instance Methods
build()
click to toggle source
# File lib/doorkeeper/jwt/config.rb, line 26 def build @config end
encryption_method(value)
click to toggle source
For backward compatibility. This library does not support encryption.
# File lib/doorkeeper/jwt/config.rb, line 43 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
secret_key(value)
click to toggle source
# File lib/doorkeeper/jwt/config.rb, line 34 def secret_key(value) @config.instance_variable_set("@secret_key", value) end
secret_key_path(value)
click to toggle source
# File lib/doorkeeper/jwt/config.rb, line 38 def secret_key_path(value) @config.instance_variable_set("@secret_key_path", value) end
signing_method(value)
click to toggle source
# File lib/doorkeeper/jwt/config.rb, line 48 def signing_method(value) @config.instance_variable_set("@signing_method", value) end
use_application_secret(value)
click to toggle source
# File lib/doorkeeper/jwt/config.rb, line 30 def use_application_secret(value) @config.instance_variable_set("@use_application_secret", value) end