Sha256: 9671c6263fcddd984ff69cea02e39554208b626bfa4cb2ae38c1b83d2393b017

Contents?: true

Size: 1.41 KB

Versions: 11

Compression:

Stored size: 1.41 KB

Contents

Knock.setup do |config|
  ## Expiration claim
  ## ----------------
  ##
  ## How long before a token is expired. If nil is provided, token will
  ## last forever.
  ##
  ## Default:
  # config.token_lifetime = 1.day

  ## Audience claim
  ## --------------
  ##
  ## Configure the audience claim to identify the recipients that the token
  ## is intended for.
  ##
  ## Default:
  # config.token_audience = nil

  ## If using Auth0, uncomment the line below
  # config.token_audience = -> { Rails.application.secrets.auth0_client_id }

  ## Signature algorithm
  ## -------------------
  ##
  ## Configure the algorithm used to encode the token
  ##
  ## Default:
  # config.token_signature_algorithm = 'HS256'

  ## Signature key
  ## -------------
  ##
  ## Configure the key used to sign tokens.
  ##
  ## Default:
  # config.token_secret_signature_key = -> { Rails.application.secrets.secret_key_base }

  ## If using Auth0, uncomment the line below
  # config.token_secret_signature_key = -> { JWT.base64url_decode Rails.application.secrets.auth0_client_secret }

  ## Public key
  ## ----------
  ##
  ## Configure the public key used to decode tokens, if required.
  ##
  ## Default:
  # config.token_public_key = nil

  ## Exception Class
  ## ---------------
  ##
  ## Configure the exception to be used when user cannot be found.
  ##
  ## Default:
  # config.not_found_exception_class_name = 'ActiveRecord::RecordNotFound'
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
push_type_auth-0.11.2 config/initializers/knock.rb
push_type_auth-0.11.1 config/initializers/knock.rb
push_type_auth-0.11.0.beta.2 config/initializers/knock.rb
push_type_auth-0.11.0.beta.1 config/initializers/knock.rb
push_type_auth-0.10.4 config/initializers/knock.rb
push_type_auth-0.10.3 config/initializers/knock.rb
push_type_auth-0.10.2 config/initializers/knock.rb
push_type_auth-0.10.1 config/initializers/knock.rb
push_type_auth-0.10.0 config/initializers/knock.rb
push_type_auth-0.10.0.beta.5 config/initializers/knock.rb
push_type_auth-0.10.0.beta.3 config/initializers/knock.rb