# OryHydraClient::CommonApi All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_self_service_browser_login_request**](CommonApi.md#get_self_service_browser_login_request) | **GET** /self-service/browser/flows/requests/login | Get the request context of browser-based login user flows [**get_self_service_browser_profile_management_request**](CommonApi.md#get_self_service_browser_profile_management_request) | **GET** /self-service/browser/flows/requests/profile | Get the request context of browser-based profile management flows [**get_self_service_browser_registration_request**](CommonApi.md#get_self_service_browser_registration_request) | **GET** /self-service/browser/flows/requests/registration | Get the request context of browser-based registration user flows [**get_self_service_error**](CommonApi.md#get_self_service_error) | **GET** /self-service/errors | Get user-facing self-service errors ## get_self_service_browser_login_request > LoginRequest get_self_service_browser_login_request(request) Get the request context of browser-based login user flows This endpoint returns a login request's context with, for example, error details and other information. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration). ### Example ```ruby # load the gem require 'ory-kratos-client' api_instance = OryHydraClient::CommonApi.new request = 'request_example' # String | Request is the Login Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/login?request=abcde`). begin #Get the request context of browser-based login user flows result = api_instance.get_self_service_browser_login_request(request) p result rescue OryHydraClient::ApiError => e puts "Exception when calling CommonApi->get_self_service_browser_login_request: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **request** | **String**| Request is the Login Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/login?request=abcde`). | ### Return type [**LoginRequest**](LoginRequest.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_self_service_browser_profile_management_request > ProfileManagementRequest get_self_service_browser_profile_management_request(request) Get the request context of browser-based profile management flows When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos Profile Management Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-profile-management). ### Example ```ruby # load the gem require 'ory-kratos-client' api_instance = OryHydraClient::CommonApi.new request = 'request_example' # String | Request is the Login Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/login?request=abcde`). begin #Get the request context of browser-based profile management flows result = api_instance.get_self_service_browser_profile_management_request(request) p result rescue OryHydraClient::ApiError => e puts "Exception when calling CommonApi->get_self_service_browser_profile_management_request: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **request** | **String**| Request is the Login Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/login?request=abcde`). | ### Return type [**ProfileManagementRequest**](ProfileManagementRequest.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_self_service_browser_registration_request > RegistrationRequest get_self_service_browser_registration_request(request) Get the request context of browser-based registration user flows This endpoint returns a registration request's context with, for example, error details and other information. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration). ### Example ```ruby # load the gem require 'ory-kratos-client' api_instance = OryHydraClient::CommonApi.new request = 'request_example' # String | Request is the Registration Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/registration?request=abcde`). begin #Get the request context of browser-based registration user flows result = api_instance.get_self_service_browser_registration_request(request) p result rescue OryHydraClient::ApiError => e puts "Exception when calling CommonApi->get_self_service_browser_registration_request: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **request** | **String**| Request is the Registration Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/registration?request=abcde`). | ### Return type [**RegistrationRequest**](RegistrationRequest.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_self_service_error > ErrorContainer get_self_service_error(opts) Get user-facing self-service errors This endpoint returns the error associated with a user-facing self service errors. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors). ### Example ```ruby # load the gem require 'ory-kratos-client' api_instance = OryHydraClient::CommonApi.new opts = { id: 'id_example' # String | } begin #Get user-facing self-service errors result = api_instance.get_self_service_error(opts) p result rescue OryHydraClient::ApiError => e puts "Exception when calling CommonApi->get_self_service_error: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| | [optional] ### Return type [**ErrorContainer**](ErrorContainer.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json