Sha256: d8dca48d7b5b3688617735a1d09958121d61981bd68e84d8ce48dbce831e7865

Contents?: true

Size: 608 Bytes

Versions: 20

Compression:

Stored size: 608 Bytes

Contents

# frozen_string_literal: true
require 'drillbit/configuration'
require 'drillbit/tokens/null'

module  Drillbit
module  Tokens
module  JsonWebTokens
class   Null < Tokens::Null
  def audience
    nil
  end

  def issued_at
    nil
  end

  def issuer
    nil
  end

  def expiration
    nil
  end

  def id
    nil
  end

  def not_before
    nil
  end

  def owner_id
    nil
  end

  def subject_id
    nil
  end

  def subject
    nil
  end

  Drillbit.configuration.available_token_roles.each do |role|
    define_method("#{role}?") do
      false
    end
  end

  def roles
    []
  end
end
end
end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
drillbit-2.11.0 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.10.0 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.9.1 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.9.0 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.8.0 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.7.0 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.6.0 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.5.0 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.4.0 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.3.1 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.3.0 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.2.2 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.2.1 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.2.0 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.1.0 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.0.1 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-2.0.0 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-1.1.0 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-1.0.1 lib/drillbit/tokens/json_web_tokens/null.rb
drillbit-1.0.0 lib/drillbit/tokens/json_web_tokens/null.rb