lib/strava/oauth/client.rb
def authorize_url(options = {})
        query = options.merge(
          client_id: client_id || raise(ArgumentError, 'Missing Strava client id.'),
          response_type: options[:response_type] || 'code',
          redirect_uri: options[:redirect_uri] || 'http://localhost',
          approval_prompt: options[:approval_prompt] || 'auto',
          scope: options[:scope] || 'read'
        )

        [endpoint, "authorize?#{query.to_query}"].join('/')
      end
#
# Obtain the request access URL.
#
# @option options [Object] :redirect_uri
#   URL to which the user will be redirected after authentication.
# @option options [Object] :response_type
#   Must be code.
# @option options [Object] :approval_prompt
#   Prompt behavior, force or auto.
# @option options [Object] :scope
#   Requested scopes, as a comma delimited string.
# @option options [Object] :state
#   Returned in the redirect URI.
# @see https://developers.strava.com/docs/authentication/
# @return [String] URL to redirect the user to.
Obtain the request access URL.
Obtain the request access URL .
def authorize_url(options = {})
        query = options.merge(
          client_id: client_id || raise(ArgumentError, 'Missing Strava client id.'),
          response_type: options[:response_type] || 'code',
          redirect_uri: options[:redirect_uri] || 'http://localhost',
          approval_prompt: options[:approval_prompt] || 'auto',
          scope: options[:scope] || 'read'
        )
        [endpoint, "authorize?#{query.to_query}"].join('/')
      end
def authorize_url ( options = { } ) query = options . merge ( client_id : client_id || raise ( ArgumentError , 'Missing Strava client id.' ) , response_type : options [ :response_type ] || 'code' , redirect_uri : options [ :redirect_uri ] || 'http://localhost' , approval_prompt : options [ :approval_prompt ] || 'auto' , scope : options [ :scope ] || 'read' ) [ endpoint , "authorize?#{query.to_query}" ] . join ( '/' ) end
Obtain the request access URL.
Obtain the request access URL .
URL to redirect the user to.
URL to redirect the user to .
String
options
:state Returned in the redirect URI.
: state Returned in the redirect URI .
see
None