Sha256: b90573b2c28fb5fbbb951711f332ba41330ba27966b97b9c73a8eb1cd1664542
Contents?: true
Size: 765 Bytes
Versions: 6
Compression:
Stored size: 765 Bytes
Contents
# frozen_string_literal: true module OAuth2 module Strategy # The Client Credentials Strategy # # @see http://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-15#section-4.4 class ClientCredentials < Base # Not used for this strategy # # @raise [NotImplementedError] def authorize_url raise(NotImplementedError, 'The authorization endpoint is not used in this strategy') end # Retrieve an access token given the specified client. # # @param [Hash] params additional params # @param [Hash] opts options def get_token(params = {}, opts = {}) params = params.merge('grant_type' => 'client_credentials') @client.get_token(params, opts) end end end end
Version data entries
6 entries across 6 versions & 2 rubygems