Sha256: dbfa0298470cf35cd4d94f16bfe77fb2ce1e460855fc0c3b7433797d057ea878

Contents?: true

Size: 667 Bytes

Versions: 38

Compression:

Stored size: 667 Bytes

Contents

require 'spec_helper'
describe Auth0::Api::V2::Blacklists do
  let(:client) { Auth0Client.new(v2_creds) }
  let(:token) { 'faketoken' }

  describe '.add_token_to_blacklist', vcr: true do
    it 'should add a token to the blacklist' do
      expect do
        client.add_token_to_blacklist(
          token,
          v2_creds[:client_id]
        )
      end.to_not raise_error
    end
  end

  describe '.blacklisted_tokens', vcr: true do
    it 'should get the added token from the blacklist' do
      expect(client.blacklisted_tokens.first).to(
        include(
          'aud' => v2_creds[:client_id],
          'jti' => token
        )
      )
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
auth0-5.18.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.16.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.15.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.14.2 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.14.1 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.14.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.13.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.12.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.11.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.10.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.9.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.8.1 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.8.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.7.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.6.1 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.6.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.5.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.4.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.3.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb
auth0-5.2.0 spec/integration/lib/auth0/api/v2/api_blacklist_spec.rb