Sha256: 6ffb5ff85473a2cc8708c794a65050faf8a924240d428a526b2ce02c464eb563

Contents?: true

Size: 530 Bytes

Versions: 6

Compression:

Stored size: 530 Bytes

Contents

  provider :spiffy,
           SpiffyStoresApp.configuration.api_key,
           SpiffyStoresApp.configuration.secret,
           scope: SpiffyStoresApp.configuration.scope,
           setup: lambda { |env|
             strategy = env['omniauth.strategy']

             spiffy_auth_params = strategy.session['spiffy.omniauth_params']&.with_indifferent_access
             store = spiffy_auth_params.present? ? "https://#{spiffy_auth_params[:store]}" : ''
             strategy.options[:client_options][:site] = store
           }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spiffy_stores_app-8.2.11 lib/generators/spiffy_stores_app/install/templates/spiffy_provider.rb
spiffy_stores_app-8.2.10 lib/generators/spiffy_stores_app/install/templates/spiffy_provider.rb
spiffy_stores_app-8.2.9 lib/generators/spiffy_stores_app/install/templates/spiffy_provider.rb
spiffy_stores_app-8.2.8 lib/generators/spiffy_stores_app/install/templates/spiffy_provider.rb
spiffy_stores_app-8.2.7 lib/generators/spiffy_stores_app/install/templates/spiffy_provider.rb
spiffy_stores_app-8.2.6 lib/generators/spiffy_stores_app/install/templates/spiffy_provider.rb