Sha256: 335f91d130e00c9facfac788af31af21e9a90fdf84799125cfb57f938c2d613a

Contents?: true

Size: 605 Bytes

Versions: 10

Compression:

Stored size: 605 Bytes

Contents

module Auth0
  module Api
    module V2
      # https://auth0.com/docs/apiv2#!/blacklists
      module Blacklists
        # https://auth0.com/docs/apiv2#!/blacklists/get_tokens
        def blacklisted_tokens
          path = "/api/v2/blacklists/tokens"
          get(path)
        end

        # https://auth0.com/docs/apiv2#!/blacklists/post_tokens
        def add_token_to_blacklist(jti, aud=nil)
          request_params = {
            jti: jti,
            aud: aud
          }
          path = "/api/v2/blacklists/tokens"
          post(path, request_params)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
auth0-3.6.1 lib/auth0/api/v2/blacklists.rb
auth0-3.6.0 lib/auth0/api/v2/blacklists.rb
auth0-3.5.0 lib/auth0/api/v2/blacklists.rb
auth0-3.4.0 lib/auth0/api/v2/blacklists.rb
auth0-3.3.0 lib/auth0/api/v2/blacklists.rb
auth0-3.2.0 lib/auth0/api/v2/blacklists.rb
auth0-3.1.2 lib/auth0/api/v2/blacklists.rb
auth0-3.1.1 lib/auth0/api/v2/blacklists.rb
auth0-3.1.0 lib/auth0/api/v2/blacklists.rb
auth0-3.0.0 lib/auth0/api/v2/blacklists.rb