Sha256: 4803caa1e3965bb9b58a2b89618ae0c8a71e209589f715957a9ef7d781631afa

Contents?: true

Size: 769 Bytes

Versions: 1

Compression:

Stored size: 769 Bytes

Contents

# frozen_string_literal: true

shared_context 'with token hashing enabled' do
  let(:hashed_or_plain_token_func) { Doorkeeper::AccessToken.method(:hashed_or_plain_token) }
  before do
    Doorkeeper.configure do
      hash_token_secrets
    end
  end
end

shared_context 'with token hashing and fallback lookup enabled' do
  let(:hashed_or_plain_token_func) { Doorkeeper::AccessToken.method(:hashed_or_plain_token) }
  before do
    Doorkeeper.configure do
      hash_token_secrets
      fallback_to_plain_secrets
    end
  end
end

shared_context 'with application hashing enabled' do
  let(:hashed_or_plain_token_func) { Doorkeeper::Application.method(:hashed_or_plain_token) }
  before do
    Doorkeeper.configure do
      hash_application_secrets
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
doorkeeper-5.1.0.rc1 spec/support/shared/hashing_shared_context.rb