lib/omniauth/strategies/auth0.rb
# Declarative override for the request phase of authentication
Declarative override for the request phase of authentication
Declarative override for the request phase of authentication
def request_phase
        if no_client_id?
          fail!(:missing_client_id)
        elsif no_client_secret?
          fail!(:missing_client_secret)
        elsif no_domain?
          fail!(:missing_domain)
        else
          super
        end
      end
def request_phase if no_client_id? fail! ( :missing_client_id ) elsif no_client_secret? fail! ( :missing_client_secret ) elsif no_domain? fail! ( :missing_domain ) else super end end
Declarative override for the request phase of authentication
Declarative override for the request phase of authentication
# Do we have a client_id for this Application? # Do we have a client_secret for this Application? # Do we have a domain for this Application? # All checks pass, run the Oauth2 request_phase method.