Sha256: 147e45221147ee542a05a12cd39e43df7dbfa474c097530289ec37ff59a1793b

Contents?: true

Size: 855 Bytes

Versions: 64

Compression:

Stored size: 855 Bytes

Contents

# In short: if user is already signed in and the request scope matches
# current authentication with an OAuth2 provider, grant them access token,
# otherwise - deny authentication.
#
# This is a simple, non-standard OAuth2 extension. It is similar to "web_server"
# strategy with one exception: instead of redirecting following temporary token 
# requests to an interactive user interface it returns a negative answer:
# when user is not signed in, or when app requests an extended scope
# that doesn't match current authentication grant.
#
# This strategy is needed to sign users in during json/jsonp requests,
# which cannot result in any interactive/navigational flows.
class ExvoAuth::OAuth2::Strategy::NonInteractive < ::OAuth2::Strategy::WebServer
  def authorize_params(options = {})
    super(options).merge('type' => 'non_interactive')
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
exvo-auth-0.14.0 lib/exvo_auth/oauth2.rb
exvo-auth-0.13.0 lib/exvo_auth/oauth2.rb
exvo-auth-0.12.2 lib/exvo_auth/oauth2.rb
exvo-auth-0.12.1 lib/exvo_auth/oauth2.rb
exvo-auth-0.12.0 lib/exvo_auth/oauth2.rb
exvo-auth-0.11.2 lib/exvo_auth/oauth2.rb
exvo-auth-0.11.1 lib/exvo_auth/oauth2.rb
exvo-auth-0.11.0 lib/exvo_auth/oauth2.rb
exvo-auth-0.10.4 lib/exvo_auth/oauth2.rb
exvo-auth-0.10.3 lib/exvo_auth/oauth2.rb
exvo-auth-0.10.2 lib/exvo_auth/oauth2.rb
exvo-auth-0.10.1 lib/exvo_auth/oauth2.rb
exvo-auth-0.10.0 lib/exvo_auth/oauth2.rb
exvo-auth-0.9.10 lib/exvo_auth/oauth2.rb
exvo-auth-0.9.9 lib/exvo_auth/oauth2.rb
exvo-auth-0.9.8 lib/exvo_auth/oauth2.rb
exvo-auth-0.9.7 lib/exvo_auth/oauth2.rb
exvo-auth-0.9.6 lib/exvo_auth/oauth2.rb
exvo-auth-0.9.5 lib/exvo_auth/oauth2.rb
exvo-auth-0.9.4 lib/exvo_auth/oauth2.rb