Sha256: 99ce3b0cfa4c14659e3488186969ce2dbc0df8025ffab163547c6713c5ef9644

Contents?: true

Size: 495 Bytes

Versions: 21

Compression:

Stored size: 495 Bytes

Contents

require 'rack/oauth2'

client = Rack::OAuth2::Client.new(
  identifier:             client_id,
  secret:                 secret,
  state:                  'some_state',
  redirect_uri:           redirect_url,
  authorization_endpoint: 'https://www.mollie.com/oauth2/authorize',
  token_endpoint:         'https://api.mollie.com/oauth2/tokens'
)

redirect_to client.authorization_uri(
  state:           'some_state',
  scope:           'payments.read refunds.write',
  approval_prompt: 'auto'
)

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
mollie-api-ruby-4.7.1 examples/connect/authorize.rb
mollie-api-ruby-4.7.0 examples/connect/authorize.rb
mollie-api-ruby-4.6.2 examples/connect/authorize.rb
mollie-api-ruby-4.6.1 examples/connect/authorize.rb
mollie-api-ruby-4.6.0 examples/connect/authorize.rb
mollie-api-ruby-4.5.0 examples/connect/authorize.rb
mollie-api-ruby-4.4.1 examples/connect/authorize.rb
mollie-api-ruby-4.4.0 examples/connect/authorize.rb
mollie-api-ruby-4.3.1 examples/connect/authorize.rb
mollie-api-ruby-4.3.0 examples/connect/authorize.rb
mollie-api-ruby-4.2.0 examples/connect/authorize.rb
mollie-api-ruby-4.1.5 examples/connect/authorize.rb
mollie-api-ruby-4.1.4 examples/connect/authorize.rb
mollie-api-ruby-4.1.3 examples/connect/authorize.rb
mollie-api-ruby-4.1.2 examples/connect/authorize.rb
mollie-api-ruby-4.1.1 examples/connect/authorize.rb
mollie-api-ruby-4.1.0 examples/connect/authorize.rb
mollie-api-ruby-4.0.1 examples/connect/authorize.rb
mollie-api-ruby-4.0.0.pre.alpha.2 examples/connect/authorize.rb
mollie-api-ruby-4.0.0 examples/connect/authorize.rb