Sha256: b89a0ccf383b70a59ed31693f2ca3c8474e3bf8a17f36cce5e5d15841f612ead

Contents?: true

Size: 408 Bytes

Versions: 18

Compression:

Stored size: 408 Bytes

Contents

# frozen_string_literal: true

module Frodo
  # Authentication middleware used if oauth_token and refresh_token are set
  class Middleware::Authentication::Token < Frodo::Middleware::Authentication
    def params
      { grant_type: 'refresh_token',
        refresh_token: @options[:refresh_token],
        client_id: @options[:client_id],
        client_secret: @options[:client_secret] }
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
frodo-0.12.8 lib/frodo/middleware/authentication/token.rb
frodo-0.12.7 lib/frodo/middleware/authentication/token.rb
frodo-0.12.6 lib/frodo/middleware/authentication/token.rb
frodo-0.12.5 lib/frodo/middleware/authentication/token.rb
frodo-0.12.4 lib/frodo/middleware/authentication/token.rb
frodo-0.12.2 lib/frodo/middleware/authentication/token.rb
frodo-0.12.1 lib/frodo/middleware/authentication/token.rb
frodo-0.12.0 lib/frodo/middleware/authentication/token.rb
frodo-0.11.0 lib/frodo/middleware/authentication/token.rb
frodo-0.10.8 lib/frodo/middleware/authentication/token.rb
frodo-0.10.7 lib/frodo/middleware/authentication/token.rb
frodo-0.10.6 lib/frodo/middleware/authentication/token.rb
frodo-0.10.5 lib/frodo/middleware/authentication/token.rb
frodo-0.10.4 lib/frodo/middleware/authentication/token.rb
frodo-0.10.3 lib/frodo/middleware/authentication/token.rb
frodo-0.10.2 lib/frodo/middleware/authentication/token.rb
frodo-0.10.1 lib/frodo/middleware/authentication/token.rb
frodo-0.10.0 lib/frodo/middleware/authentication/token.rb