Sha256: 956e27d02b05d5769cf77df16ce4fd5ec08cc9a3fde67d3d824e3efbd0488f70

Contents?: true

Size: 1.14 KB

Versions: 22

Compression:

Stored size: 1.14 KB

Contents

# frozen_string_literal: true

require "doorkeeper/grant_flow/flow"
require "doorkeeper/grant_flow/fallback_flow"
require "doorkeeper/grant_flow/registry"

module Doorkeeper
  module GrantFlow
    extend Registry

    register(
      :implicit,
      response_type_matches: "token",
      response_mode_matches: %w[fragment form_post],
      response_type_strategy: Doorkeeper::Request::Token,
    )

    register(
      :authorization_code,
      response_type_matches: "code",
      response_mode_matches: %w[query fragment form_post],
      response_type_strategy: Doorkeeper::Request::Code,
      grant_type_matches: "authorization_code",
      grant_type_strategy: Doorkeeper::Request::AuthorizationCode,
    )

    register(
      :client_credentials,
      grant_type_matches: "client_credentials",
      grant_type_strategy: Doorkeeper::Request::ClientCredentials,
    )

    register(
      :password,
      grant_type_matches: "password",
      grant_type_strategy: Doorkeeper::Request::Password,
    )

    register(
      :refresh_token,
      grant_type_matches: "refresh_token",
      grant_type_strategy: Doorkeeper::Request::RefreshToken,
    )
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
doorkeeper-5.8.1 lib/doorkeeper/grant_flow.rb
doorkeeper-5.8.0 lib/doorkeeper/grant_flow.rb
doorkeeper-5.7.1 lib/doorkeeper/grant_flow.rb
doorkeeper-5.7.0 lib/doorkeeper/grant_flow.rb
doorkeeper-5.6.9 lib/doorkeeper/grant_flow.rb
doorkeeper-5.6.8 lib/doorkeeper/grant_flow.rb
doorkeeper-5.6.7 lib/doorkeeper/grant_flow.rb
doorkeeper-5.6.6 lib/doorkeeper/grant_flow.rb
doorkeeper-5.6.5 lib/doorkeeper/grant_flow.rb
doorkeeper-5.6.4 lib/doorkeeper/grant_flow.rb
doorkeeper-5.6.3 lib/doorkeeper/grant_flow.rb
doorkeeper-5.6.2 lib/doorkeeper/grant_flow.rb
doorkeeper-5.6.1 lib/doorkeeper/grant_flow.rb
doorkeeper-5.6.0 lib/doorkeeper/grant_flow.rb
doorkeeper-5.6.0.rc2 lib/doorkeeper/grant_flow.rb
doorkeeper-5.6.0.rc1 lib/doorkeeper/grant_flow.rb
doorkeeper-5.5.4 lib/doorkeeper/grant_flow.rb
doorkeeper-5.5.3 lib/doorkeeper/grant_flow.rb
doorkeeper-5.5.2 lib/doorkeeper/grant_flow.rb
doorkeeper-5.5.1 lib/doorkeeper/grant_flow.rb