Sha256: 81e223225aa32e2201bbcf5f7ef69292a441e21f363aa3dc27d641b87915129c

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 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
          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
          }
          post(path, request_params)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
auth0-ruby-0.10 lib/auth0/api/v2/blacklists.rb