clients/hydra/ruby/lib/ory-hydra-client/api/admin_api.rb
# Accept a Login Request
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \&quot;identity provider\&quot;) to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\&quot;show the subject a login screen\&quot;) a subject (in OAuth2 the proper name for subject is \&quot;resource owner\&quot;).  The authentication challenge is appended to the login provider URL to which the subject&#39;s user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process.  This endpoint tells ORY Hydra that the subject has successfully authenticated and includes additional information such as the subject&#39;s ID and if ORY Hydra should remember the subject&#39;s subject agent for future authentication attempts by setting a cookie.  The response contains a redirect URL which the login provider should redirect the user-agent to.
# @param login_challenge [String] 
# @param [Hash] opts the optional parameters
# @option opts [AcceptLoginRequest] :body 
# @return [Array<(CompletedRequest, Integer, Hash)>] CompletedRequest data, response status code and response headers
Accept a Login Request
When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\").  The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process.  This endpoint tells ORY Hydra that the subject has successfully authenticated and includes additional information such as the subject's ID and if ORY Hydra should remember the subject's subject agent for future authentication attempts by setting a cookie.  The response contains a redirect URL which the login provider should redirect the user-agent to.
Accept a Login Request When an authorization code hybrid or implicit OAuth 2 . 0 Flow is initiated ORY Hydra asks the login provider ( sometimes called \ " identity provider \ " ) to authenticate the subject and then tell ORY Hydra now about it . The login provider is an web - app you write and host and it must be able to authenticate ( \ " show the subject a login screen \ " ) a subject ( in OAuth2 the proper name for subject is \ " resource owner \ " ) . The authentication challenge is appended to the login provider URL to which the subject ' s user - agent ( browser ) is redirected to . The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process . This endpoint tells ORY Hydra that the subject has successfully authenticated and includes additional information such as the subject ' s ID and if ORY Hydra should remember the subject ' s subject agent for future authentication attempts by setting a cookie . The response contains a redirect URL which the login provider should redirect the user - agent to .
def accept_login_request_with_http_info(login_challenge, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: AdminApi.accept_login_request ...'
      end
      if @api_client.config.client_side_validation && login_challenge.nil?
        fail ArgumentError, "Missing the required parameter 'login_challenge' when calling AdminApi.accept_login_request"
      end
      local_var_path = '/oauth2/auth/requests/login/accept'
      query_params = opts[:query_params] || {}
      query_params[:'login_challenge'] = login_challenge
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
      return_type = opts[:debug_return_type] || 'CompletedRequest'
      auth_names = opts[:debug_auth_names] || []
      new_options = opts.merge(
        :operation => :"AdminApi.accept_login_request",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: AdminApi#accept_login_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def accept_login_request_with_http_info ( login_challenge , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: AdminApi.accept_login_request ...' end if @api_client . config . client_side_validation && login_challenge . nil? fail ArgumentError , "Missing the required parameter 'login_challenge' when calling AdminApi.accept_login_request" end local_var_path = '/oauth2/auth/requests/login/accept' query_params = opts [ :query_params ] || { } query_params [ :' login_challenge ' ] = login_challenge header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] || @api_client . object_to_http_body ( opts [ :' body ' ] ) return_type = opts [ :debug_return_type ] || 'CompletedRequest' auth_names = opts [ :debug_auth_names ] || [ ] new_options = opts . merge ( :operation => :" AdminApi.accept_login_request " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :PUT , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: AdminApi#accept_login_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Accept a Login Request
When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \&quot;identity provider\&quot;) to authenticate the subject and then tell ORY Hydra now about it.
Accept a Login Request When an authorization code hybrid or implicit OAuth 2 . 0 Flow is initiated ORY Hydra asks the login provider ( sometimes called \ &quot ; identity provider \ &quot ; ) to authenticate the subject and then tell ORY Hydra now about it .
# verify the required parameter 'login_challenge' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model) # return_type # auth_names
CompletedRequest data, response status code and response headers
CompletedRequest data response status code and response headers
Array<(CompletedRequest, Integer, Hash)>
login_challenge
<not_specific>
opts
None
<not_specific>
None
<not_specific>
opts the optional parameters
opts the optional parameters