ory-kratos-client 0.2.1.alpha1 → 0.3.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/AdminApi.md +1 -1
- data/docs/CommonApi.md +1 -1
- data/docs/FormField.md +2 -2
- data/docs/ProviderCredentialsConfig.md +19 -0
- data/docs/PublicApi.md +47 -4
- data/docs/RegistrationRequest.md +1 -1
- data/lib/ory-kratos-client.rb +1 -0
- data/lib/ory-kratos-client/api/admin_api.rb +2 -2
- data/lib/ory-kratos-client/api/common_api.rb +2 -2
- data/lib/ory-kratos-client/api/public_api.rb +64 -8
- data/lib/ory-kratos-client/models/form_field.rb +0 -6
- data/lib/ory-kratos-client/models/provider_credentials_config.rb +215 -0
- data/lib/ory-kratos-client/models/registration_request.rb +0 -5
- data/lib/ory-kratos-client/models/settings_request.rb +1 -1
- data/lib/ory-kratos-client/version.rb +1 -1
- data/spec/models/provider_credentials_config_spec.rb +47 -0
- metadata +25 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e628085fbdcbe215aa8177a6fc650b67474ad15697a8bfc6a0e24657ee22654
|
4
|
+
data.tar.gz: 759d694b5fa659c8ba6d0949451a9fcbb61bfb2b8091e6d9ad991d2b0c1862a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eeb4494e6323ceb734183416249ef15f7c8f8eeed4b4393b535dbefcf8c3551ce024ebbe8b3a81f642a176050c74934a9ed6906925aa62d42cf67aebff02ed0b
|
7
|
+
data.tar.gz: 7eb3895a41dab9289287efde889ceb62479f05e12cdb0bdb1f4f7fb4ee488559e8998c49d1861f9888cd18ff6f7de7002e0997e10a33b15d6088d2570250cafa
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Welcome to the ORY Kratos HTTP API documentation!
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: latest
|
10
|
-
- Package version: v0.
|
10
|
+
- Package version: v0.3.0-alpha.1
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,16 +23,16 @@ gem build ory-kratos-client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./ory-kratos-client-v0.
|
26
|
+
gem install ./ory-kratos-client-v0.3.0-alpha.1.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./ory-kratos-client-v0.
|
29
|
+
(for development, run `gem install --dev ./ory-kratos-client-v0.3.0-alpha.1.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'ory-kratos-client', '~> v0.
|
35
|
+
gem 'ory-kratos-client', '~> v0.3.0-alpha.1'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -94,6 +94,7 @@ Class | Method | HTTP request | Description
|
|
94
94
|
*OryHydraClient::CommonApi* | [**get_self_service_verification_request**](docs/CommonApi.md#get_self_service_verification_request) | **GET** /self-service/browser/flows/requests/verification | Get the request context of browser-based verification flows
|
95
95
|
*OryHydraClient::HealthApi* | [**is_instance_alive**](docs/HealthApi.md#is_instance_alive) | **GET** /health/alive | Check alive status
|
96
96
|
*OryHydraClient::HealthApi* | [**is_instance_ready**](docs/HealthApi.md#is_instance_ready) | **GET** /health/ready | Check readiness status
|
97
|
+
*OryHydraClient::PublicApi* | [**complete_self_service_browser_settings_oidc_settings_flow**](docs/PublicApi.md#complete_self_service_browser_settings_oidc_settings_flow) | **POST** /self-service/browser/flows/registration/strategies/oidc/settings/connections | Complete the browser-based settings flow for the OpenID Connect strategy
|
97
98
|
*OryHydraClient::PublicApi* | [**complete_self_service_browser_settings_password_strategy_flow**](docs/PublicApi.md#complete_self_service_browser_settings_password_strategy_flow) | **POST** /self-service/browser/flows/settings/strategies/password | Complete the browser-based settings flow for the password strategy
|
98
99
|
*OryHydraClient::PublicApi* | [**complete_self_service_browser_settings_profile_strategy_flow**](docs/PublicApi.md#complete_self_service_browser_settings_profile_strategy_flow) | **POST** /self-service/browser/flows/settings/strategies/profile | Complete the browser-based settings flow for profile data
|
99
100
|
*OryHydraClient::PublicApi* | [**complete_self_service_browser_verification_flow**](docs/PublicApi.md#complete_self_service_browser_verification_flow) | **POST** /self-service/browser/flows/verification/{via}/complete | Complete the browser-based verification flows
|
@@ -128,6 +129,7 @@ Class | Method | HTTP request | Description
|
|
128
129
|
- [OryHydraClient::LoginRequest](docs/LoginRequest.md)
|
129
130
|
- [OryHydraClient::LoginRequestMethod](docs/LoginRequestMethod.md)
|
130
131
|
- [OryHydraClient::LoginRequestMethodConfig](docs/LoginRequestMethodConfig.md)
|
132
|
+
- [OryHydraClient::ProviderCredentialsConfig](docs/ProviderCredentialsConfig.md)
|
131
133
|
- [OryHydraClient::RegistrationRequest](docs/RegistrationRequest.md)
|
132
134
|
- [OryHydraClient::RegistrationRequestMethod](docs/RegistrationRequestMethod.md)
|
133
135
|
- [OryHydraClient::RegistrationRequestMethodConfig](docs/RegistrationRequestMethodConfig.md)
|
data/docs/AdminApi.md
CHANGED
@@ -304,7 +304,7 @@ No authorization required
|
|
304
304
|
|
305
305
|
Get the request context of browser-based settings flows
|
306
306
|
|
307
|
-
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 User Settings & Profile Management Documentation](
|
307
|
+
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 User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
308
308
|
|
309
309
|
### Example
|
310
310
|
|
data/docs/CommonApi.md
CHANGED
@@ -159,7 +159,7 @@ No authorization required
|
|
159
159
|
|
160
160
|
Get the request context of browser-based settings flows
|
161
161
|
|
162
|
-
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 User Settings & Profile Management Documentation](
|
162
|
+
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 User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
163
163
|
|
164
164
|
### Example
|
165
165
|
|
data/docs/FormField.md
CHANGED
@@ -5,10 +5,10 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**disabled** | **Boolean** | Disabled is the equivalent of `<input disabled=\"{{.Disabled}}\">` | [optional]
|
8
|
-
**errors** | [**Array<Error>**](Error.md) |
|
8
|
+
**errors** | [**Array<Error>**](Error.md) | | [optional]
|
9
9
|
**name** | **String** | Name is the equivalent of `<input name=\"{{.Name}}\">` |
|
10
10
|
**pattern** | **String** | Pattern is the equivalent of `<input pattern=\"{{.Pattern}}\">` | [optional]
|
11
|
-
**required** | **Boolean** | Required is the equivalent of `<input required=\"{{.Required}}\">` |
|
11
|
+
**required** | **Boolean** | Required is the equivalent of `<input required=\"{{.Required}}\">` | [optional]
|
12
12
|
**type** | **String** | Type is the equivalent of `<input type=\"{{.Type}}\">` |
|
13
13
|
**value** | [**Object**](.md) | Value is the equivalent of `<input value=\"{{.Value}}\">` | [optional]
|
14
14
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# OryHydraClient::ProviderCredentialsConfig
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**provider** | **String** | | [optional]
|
8
|
+
**subject** | **String** | | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'OryHydraClient'
|
14
|
+
|
15
|
+
instance = OryHydraClient::ProviderCredentialsConfig.new(provider: null,
|
16
|
+
subject: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
data/docs/PublicApi.md
CHANGED
@@ -4,6 +4,7 @@ All URIs are relative to *http://localhost*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**complete_self_service_browser_settings_oidc_settings_flow**](PublicApi.md#complete_self_service_browser_settings_oidc_settings_flow) | **POST** /self-service/browser/flows/registration/strategies/oidc/settings/connections | Complete the browser-based settings flow for the OpenID Connect strategy
|
7
8
|
[**complete_self_service_browser_settings_password_strategy_flow**](PublicApi.md#complete_self_service_browser_settings_password_strategy_flow) | **POST** /self-service/browser/flows/settings/strategies/password | Complete the browser-based settings flow for the password strategy
|
8
9
|
[**complete_self_service_browser_settings_profile_strategy_flow**](PublicApi.md#complete_self_service_browser_settings_profile_strategy_flow) | **POST** /self-service/browser/flows/settings/strategies/profile | Complete the browser-based settings flow for profile data
|
9
10
|
[**complete_self_service_browser_verification_flow**](PublicApi.md#complete_self_service_browser_verification_flow) | **POST** /self-service/browser/flows/verification/{via}/complete | Complete the browser-based verification flows
|
@@ -23,13 +24,55 @@ Method | HTTP request | Description
|
|
23
24
|
|
24
25
|
|
25
26
|
|
27
|
+
## complete_self_service_browser_settings_oidc_settings_flow
|
28
|
+
|
29
|
+
> complete_self_service_browser_settings_oidc_settings_flow
|
30
|
+
|
31
|
+
Complete the browser-based settings flow for the OpenID Connect strategy
|
32
|
+
|
33
|
+
This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
34
|
+
|
35
|
+
### Example
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
# load the gem
|
39
|
+
require 'ory-kratos-client'
|
40
|
+
|
41
|
+
api_instance = OryHydraClient::PublicApi.new
|
42
|
+
|
43
|
+
begin
|
44
|
+
#Complete the browser-based settings flow for the OpenID Connect strategy
|
45
|
+
api_instance.complete_self_service_browser_settings_oidc_settings_flow
|
46
|
+
rescue OryHydraClient::ApiError => e
|
47
|
+
puts "Exception when calling PublicApi->complete_self_service_browser_settings_oidc_settings_flow: #{e}"
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
### Parameters
|
52
|
+
|
53
|
+
This endpoint does not need any parameter.
|
54
|
+
|
55
|
+
### Return type
|
56
|
+
|
57
|
+
nil (empty response body)
|
58
|
+
|
59
|
+
### Authorization
|
60
|
+
|
61
|
+
No authorization required
|
62
|
+
|
63
|
+
### HTTP request headers
|
64
|
+
|
65
|
+
- **Content-Type**: Not defined
|
66
|
+
- **Accept**: application/json
|
67
|
+
|
68
|
+
|
26
69
|
## complete_self_service_browser_settings_password_strategy_flow
|
27
70
|
|
28
71
|
> complete_self_service_browser_settings_password_strategy_flow
|
29
72
|
|
30
73
|
Complete the browser-based settings flow for the password strategy
|
31
74
|
|
32
|
-
This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](
|
75
|
+
This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
33
76
|
|
34
77
|
### Example
|
35
78
|
|
@@ -71,7 +114,7 @@ No authorization required
|
|
71
114
|
|
72
115
|
Complete the browser-based settings flow for profile data
|
73
116
|
|
74
|
-
This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. If the provided profile data is valid against the Identity's Traits JSON Schema, the data will be updated and the browser redirected to `url.settings_ui` for further steps. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](
|
117
|
+
This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. If the provided profile data is valid against the Identity's Traits JSON Schema, the data will be updated and the browser redirected to `url.settings_ui` for further steps. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
75
118
|
|
76
119
|
### Example
|
77
120
|
|
@@ -307,7 +350,7 @@ No authorization required
|
|
307
350
|
|
308
351
|
Get the request context of browser-based settings flows
|
309
352
|
|
310
|
-
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 User Settings & Profile Management Documentation](
|
353
|
+
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 User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
311
354
|
|
312
355
|
### Example
|
313
356
|
|
@@ -622,7 +665,7 @@ No authorization required
|
|
622
665
|
|
623
666
|
Initialize browser-based settings flow
|
624
667
|
|
625
|
-
This endpoint initializes a browser-based settings flow. Once initialized, the browser will be redirected to `urls.settings_ui` with the request ID set as a query parameter. If no valid user session exists, a login flow will be initialized. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). More information can be found at [ORY Kratos User Settings & Profile Management Documentation](
|
668
|
+
This endpoint initializes a browser-based settings flow. Once initialized, the browser will be redirected to `urls.settings_ui` with the request ID set as a query parameter. If no valid user session exists, a login flow will be initialized. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
626
669
|
|
627
670
|
### Example
|
628
671
|
|
data/docs/RegistrationRequest.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**active** | **String** | and so on. |
|
7
|
+
**active** | **String** | and so on. | [optional]
|
8
8
|
**expires_at** | **DateTime** | ExpiresAt is the time (UTC) when the request expires. If the user still wishes to log in, a new request has to be initiated. |
|
9
9
|
**id** | **String** | |
|
10
10
|
**issued_at** | **DateTime** | IssuedAt is the time (UTC) when the request occurred. |
|
data/lib/ory-kratos-client.rb
CHANGED
@@ -30,6 +30,7 @@ require 'ory-kratos-client/models/identity'
|
|
30
30
|
require 'ory-kratos-client/models/login_request'
|
31
31
|
require 'ory-kratos-client/models/login_request_method'
|
32
32
|
require 'ory-kratos-client/models/login_request_method_config'
|
33
|
+
require 'ory-kratos-client/models/provider_credentials_config'
|
33
34
|
require 'ory-kratos-client/models/registration_request'
|
34
35
|
require 'ory-kratos-client/models/registration_request_method'
|
35
36
|
require 'ory-kratos-client/models/registration_request_method_config'
|
@@ -394,7 +394,7 @@ module OryHydraClient
|
|
394
394
|
end
|
395
395
|
|
396
396
|
# Get the request context of browser-based settings flows
|
397
|
-
# 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 User Settings & Profile Management Documentation](
|
397
|
+
# 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 User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
398
398
|
# @param 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`).
|
399
399
|
# @param [Hash] opts the optional parameters
|
400
400
|
# @return [SettingsRequest]
|
@@ -404,7 +404,7 @@ module OryHydraClient
|
|
404
404
|
end
|
405
405
|
|
406
406
|
# Get the request context of browser-based settings flows
|
407
|
-
# 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 User Settings & Profile Management Documentation](
|
407
|
+
# 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 User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
408
408
|
# @param 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`).
|
409
409
|
# @param [Hash] opts the optional parameters
|
410
410
|
# @return [Array<(SettingsRequest, Integer, Hash)>] SettingsRequest data, response status code and response headers
|
@@ -206,7 +206,7 @@ module OryHydraClient
|
|
206
206
|
end
|
207
207
|
|
208
208
|
# Get the request context of browser-based settings flows
|
209
|
-
# 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 User Settings & Profile Management Documentation](
|
209
|
+
# 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 User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
210
210
|
# @param 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`).
|
211
211
|
# @param [Hash] opts the optional parameters
|
212
212
|
# @return [SettingsRequest]
|
@@ -216,7 +216,7 @@ module OryHydraClient
|
|
216
216
|
end
|
217
217
|
|
218
218
|
# Get the request context of browser-based settings flows
|
219
|
-
# 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 User Settings & Profile Management Documentation](
|
219
|
+
# 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 User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
220
220
|
# @param 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`).
|
221
221
|
# @param [Hash] opts the optional parameters
|
222
222
|
# @return [Array<(SettingsRequest, Integer, Hash)>] SettingsRequest data, response status code and response headers
|
@@ -19,8 +19,64 @@ module OryHydraClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Complete the browser-based settings flow for the OpenID Connect strategy
|
23
|
+
# This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [nil]
|
26
|
+
def complete_self_service_browser_settings_oidc_settings_flow(opts = {})
|
27
|
+
complete_self_service_browser_settings_oidc_settings_flow_with_http_info(opts)
|
28
|
+
nil
|
29
|
+
end
|
30
|
+
|
31
|
+
# Complete the browser-based settings flow for the OpenID Connect strategy
|
32
|
+
# This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
35
|
+
def complete_self_service_browser_settings_oidc_settings_flow_with_http_info(opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: PublicApi.complete_self_service_browser_settings_oidc_settings_flow ...'
|
38
|
+
end
|
39
|
+
# resource path
|
40
|
+
local_var_path = '/self-service/browser/flows/registration/strategies/oidc/settings/connections'
|
41
|
+
|
42
|
+
# query parameters
|
43
|
+
query_params = opts[:query_params] || {}
|
44
|
+
|
45
|
+
# header parameters
|
46
|
+
header_params = opts[:header_params] || {}
|
47
|
+
# HTTP header 'Accept' (if needed)
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
49
|
+
|
50
|
+
# form parameters
|
51
|
+
form_params = opts[:form_params] || {}
|
52
|
+
|
53
|
+
# http body (model)
|
54
|
+
post_body = opts[:body]
|
55
|
+
|
56
|
+
# return_type
|
57
|
+
return_type = opts[:return_type]
|
58
|
+
|
59
|
+
# auth_names
|
60
|
+
auth_names = opts[:auth_names] || []
|
61
|
+
|
62
|
+
new_options = opts.merge(
|
63
|
+
:header_params => header_params,
|
64
|
+
:query_params => query_params,
|
65
|
+
:form_params => form_params,
|
66
|
+
:body => post_body,
|
67
|
+
:auth_names => auth_names,
|
68
|
+
:return_type => return_type
|
69
|
+
)
|
70
|
+
|
71
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
72
|
+
if @api_client.config.debugging
|
73
|
+
@api_client.config.logger.debug "API called: PublicApi#complete_self_service_browser_settings_oidc_settings_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
74
|
+
end
|
75
|
+
return data, status_code, headers
|
76
|
+
end
|
77
|
+
|
22
78
|
# Complete the browser-based settings flow for the password strategy
|
23
|
-
# This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](
|
79
|
+
# This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
24
80
|
# @param [Hash] opts the optional parameters
|
25
81
|
# @return [nil]
|
26
82
|
def complete_self_service_browser_settings_password_strategy_flow(opts = {})
|
@@ -29,7 +85,7 @@ module OryHydraClient
|
|
29
85
|
end
|
30
86
|
|
31
87
|
# Complete the browser-based settings flow for the password strategy
|
32
|
-
# This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](
|
88
|
+
# This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
33
89
|
# @param [Hash] opts the optional parameters
|
34
90
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
35
91
|
def complete_self_service_browser_settings_password_strategy_flow_with_http_info(opts = {})
|
@@ -76,7 +132,7 @@ module OryHydraClient
|
|
76
132
|
end
|
77
133
|
|
78
134
|
# Complete the browser-based settings flow for profile data
|
79
|
-
# This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. If the provided profile data is valid against the Identity's Traits JSON Schema, the data will be updated and the browser redirected to `url.settings_ui` for further steps. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](
|
135
|
+
# This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. If the provided profile data is valid against the Identity's Traits JSON Schema, the data will be updated and the browser redirected to `url.settings_ui` for further steps. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
80
136
|
# @param request [String] Request is the request ID.
|
81
137
|
# @param body [CompleteSelfServiceBrowserSettingsStrategyProfileFlowPayload]
|
82
138
|
# @param [Hash] opts the optional parameters
|
@@ -87,7 +143,7 @@ module OryHydraClient
|
|
87
143
|
end
|
88
144
|
|
89
145
|
# Complete the browser-based settings flow for profile data
|
90
|
-
# This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. If the provided profile data is valid against the Identity's Traits JSON Schema, the data will be updated and the browser redirected to `url.settings_ui` for further steps. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](
|
146
|
+
# This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this endpoint. If the provided profile data is valid against the Identity's Traits JSON Schema, the data will be updated and the browser redirected to `url.settings_ui` for further steps. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
91
147
|
# @param request [String] Request is the request ID.
|
92
148
|
# @param body [CompleteSelfServiceBrowserSettingsStrategyProfileFlowPayload]
|
93
149
|
# @param [Hash] opts the optional parameters
|
@@ -402,7 +458,7 @@ module OryHydraClient
|
|
402
458
|
end
|
403
459
|
|
404
460
|
# Get the request context of browser-based settings flows
|
405
|
-
# 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 User Settings & Profile Management Documentation](
|
461
|
+
# 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 User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
406
462
|
# @param 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`).
|
407
463
|
# @param [Hash] opts the optional parameters
|
408
464
|
# @return [SettingsRequest]
|
@@ -412,7 +468,7 @@ module OryHydraClient
|
|
412
468
|
end
|
413
469
|
|
414
470
|
# Get the request context of browser-based settings flows
|
415
|
-
# 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 User Settings & Profile Management Documentation](
|
471
|
+
# 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 User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
416
472
|
# @param 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`).
|
417
473
|
# @param [Hash] opts the optional parameters
|
418
474
|
# @return [Array<(SettingsRequest, Integer, Hash)>] SettingsRequest data, response status code and response headers
|
@@ -817,7 +873,7 @@ module OryHydraClient
|
|
817
873
|
end
|
818
874
|
|
819
875
|
# Initialize browser-based settings flow
|
820
|
-
# This endpoint initializes a browser-based settings flow. Once initialized, the browser will be redirected to `urls.settings_ui` with the request ID set as a query parameter. If no valid user session exists, a login flow will be initialized. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). More information can be found at [ORY Kratos User Settings & Profile Management Documentation](
|
876
|
+
# This endpoint initializes a browser-based settings flow. Once initialized, the browser will be redirected to `urls.settings_ui` with the request ID set as a query parameter. If no valid user session exists, a login flow will be initialized. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
821
877
|
# @param [Hash] opts the optional parameters
|
822
878
|
# @return [nil]
|
823
879
|
def initialize_self_service_settings_flow(opts = {})
|
@@ -826,7 +882,7 @@ module OryHydraClient
|
|
826
882
|
end
|
827
883
|
|
828
884
|
# Initialize browser-based settings flow
|
829
|
-
# This endpoint initializes a browser-based settings flow. Once initialized, the browser will be redirected to `urls.settings_ui` with the request ID set as a query parameter. If no valid user session exists, a login flow will be initialized. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). More information can be found at [ORY Kratos User Settings & Profile Management Documentation](
|
885
|
+
# This endpoint initializes a browser-based settings flow. Once initialized, the browser will be redirected to `urls.settings_ui` with the request ID set as a query parameter. If no valid user session exists, a login flow will be initialized. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
830
886
|
# @param [Hash] opts the optional parameters
|
831
887
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
832
888
|
def initialize_self_service_settings_flow_with_http_info(opts = {})
|
@@ -18,7 +18,6 @@ module OryHydraClient
|
|
18
18
|
# Disabled is the equivalent of `<input disabled=\"{{.Disabled}}\">`
|
19
19
|
attr_accessor :disabled
|
20
20
|
|
21
|
-
# Errors contains all validation errors this particular field has caused.
|
22
21
|
attr_accessor :errors
|
23
22
|
|
24
23
|
# Name is the equivalent of `<input name=\"{{.Name}}\">`
|
@@ -122,10 +121,6 @@ module OryHydraClient
|
|
122
121
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
123
122
|
end
|
124
123
|
|
125
|
-
if @required.nil?
|
126
|
-
invalid_properties.push('invalid value for "required", required cannot be nil.')
|
127
|
-
end
|
128
|
-
|
129
124
|
if @type.nil?
|
130
125
|
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
131
126
|
end
|
@@ -137,7 +132,6 @@ module OryHydraClient
|
|
137
132
|
# @return true if the model is valid
|
138
133
|
def valid?
|
139
134
|
return false if @name.nil?
|
140
|
-
return false if @required.nil?
|
141
135
|
return false if @type.nil?
|
142
136
|
true
|
143
137
|
end
|
@@ -0,0 +1,215 @@
|
|
1
|
+
=begin
|
2
|
+
#Ory Kratos
|
3
|
+
|
4
|
+
#Welcome to the ORY Kratos HTTP API documentation!
|
5
|
+
|
6
|
+
The version of the OpenAPI document: latest
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module OryHydraClient
|
16
|
+
class ProviderCredentialsConfig
|
17
|
+
attr_accessor :provider
|
18
|
+
|
19
|
+
attr_accessor :subject
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'provider' => :'provider',
|
25
|
+
:'subject' => :'subject'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.openapi_types
|
31
|
+
{
|
32
|
+
:'provider' => :'String',
|
33
|
+
:'subject' => :'String'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# List of attributes with nullable: true
|
38
|
+
def self.openapi_nullable
|
39
|
+
Set.new([
|
40
|
+
])
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
def initialize(attributes = {})
|
46
|
+
if (!attributes.is_a?(Hash))
|
47
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::ProviderCredentialsConfig` initialize method"
|
48
|
+
end
|
49
|
+
|
50
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
52
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
53
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::ProviderCredentialsConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
|
+
end
|
55
|
+
h[k.to_sym] = v
|
56
|
+
}
|
57
|
+
|
58
|
+
if attributes.key?(:'provider')
|
59
|
+
self.provider = attributes[:'provider']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.key?(:'subject')
|
63
|
+
self.subject = attributes[:'subject']
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
+
# @return Array for valid properties with the reasons
|
69
|
+
def list_invalid_properties
|
70
|
+
invalid_properties = Array.new
|
71
|
+
invalid_properties
|
72
|
+
end
|
73
|
+
|
74
|
+
# Check to see if the all the properties in the model are valid
|
75
|
+
# @return true if the model is valid
|
76
|
+
def valid?
|
77
|
+
true
|
78
|
+
end
|
79
|
+
|
80
|
+
# Checks equality by comparing each attribute.
|
81
|
+
# @param [Object] Object to be compared
|
82
|
+
def ==(o)
|
83
|
+
return true if self.equal?(o)
|
84
|
+
self.class == o.class &&
|
85
|
+
provider == o.provider &&
|
86
|
+
subject == o.subject
|
87
|
+
end
|
88
|
+
|
89
|
+
# @see the `==` method
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def eql?(o)
|
92
|
+
self == o
|
93
|
+
end
|
94
|
+
|
95
|
+
# Calculates hash code according to all attributes.
|
96
|
+
# @return [Integer] Hash code
|
97
|
+
def hash
|
98
|
+
[provider, subject].hash
|
99
|
+
end
|
100
|
+
|
101
|
+
# Builds the object from hash
|
102
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
+
# @return [Object] Returns the model itself
|
104
|
+
def self.build_from_hash(attributes)
|
105
|
+
new.build_from_hash(attributes)
|
106
|
+
end
|
107
|
+
|
108
|
+
# Builds the object from hash
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
110
|
+
# @return [Object] Returns the model itself
|
111
|
+
def build_from_hash(attributes)
|
112
|
+
return nil unless attributes.is_a?(Hash)
|
113
|
+
self.class.openapi_types.each_pair do |key, type|
|
114
|
+
if type =~ /\AArray<(.*)>/i
|
115
|
+
# check to ensure the input is an array given that the attribute
|
116
|
+
# is documented as an array but the input is not
|
117
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
118
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
119
|
+
end
|
120
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
121
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
122
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
123
|
+
end
|
124
|
+
|
125
|
+
self
|
126
|
+
end
|
127
|
+
|
128
|
+
# Deserializes the data based on type
|
129
|
+
# @param string type Data type
|
130
|
+
# @param string value Value to be deserialized
|
131
|
+
# @return [Object] Deserialized data
|
132
|
+
def _deserialize(type, value)
|
133
|
+
case type.to_sym
|
134
|
+
when :DateTime
|
135
|
+
DateTime.parse(value)
|
136
|
+
when :Date
|
137
|
+
Date.parse(value)
|
138
|
+
when :String
|
139
|
+
value.to_s
|
140
|
+
when :Integer
|
141
|
+
value.to_i
|
142
|
+
when :Float
|
143
|
+
value.to_f
|
144
|
+
when :Boolean
|
145
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
146
|
+
true
|
147
|
+
else
|
148
|
+
false
|
149
|
+
end
|
150
|
+
when :Object
|
151
|
+
# generic object (usually a Hash), return directly
|
152
|
+
value
|
153
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
154
|
+
inner_type = Regexp.last_match[:inner_type]
|
155
|
+
value.map { |v| _deserialize(inner_type, v) }
|
156
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
157
|
+
k_type = Regexp.last_match[:k_type]
|
158
|
+
v_type = Regexp.last_match[:v_type]
|
159
|
+
{}.tap do |hash|
|
160
|
+
value.each do |k, v|
|
161
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
else # model
|
165
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
# Returns the string representation of the object
|
170
|
+
# @return [String] String presentation of the object
|
171
|
+
def to_s
|
172
|
+
to_hash.to_s
|
173
|
+
end
|
174
|
+
|
175
|
+
# to_body is an alias to to_hash (backward compatibility)
|
176
|
+
# @return [Hash] Returns the object in the form of hash
|
177
|
+
def to_body
|
178
|
+
to_hash
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the object in the form of hash
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_hash
|
184
|
+
hash = {}
|
185
|
+
self.class.attribute_map.each_pair do |attr, param|
|
186
|
+
value = self.send(attr)
|
187
|
+
if value.nil?
|
188
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
189
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
190
|
+
end
|
191
|
+
|
192
|
+
hash[param] = _to_hash(value)
|
193
|
+
end
|
194
|
+
hash
|
195
|
+
end
|
196
|
+
|
197
|
+
# Outputs non-array value in the form of hash
|
198
|
+
# For object, use to_hash. Otherwise, just return the value
|
199
|
+
# @param [Object] value Any valid value
|
200
|
+
# @return [Hash] Returns the value in the form of hash
|
201
|
+
def _to_hash(value)
|
202
|
+
if value.is_a?(Array)
|
203
|
+
value.compact.map { |v| _to_hash(v) }
|
204
|
+
elsif value.is_a?(Hash)
|
205
|
+
{}.tap do |hash|
|
206
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
207
|
+
end
|
208
|
+
elsif value.respond_to? :to_hash
|
209
|
+
value.to_hash
|
210
|
+
else
|
211
|
+
value
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
@@ -107,10 +107,6 @@ module OryHydraClient
|
|
107
107
|
# @return Array for valid properties with the reasons
|
108
108
|
def list_invalid_properties
|
109
109
|
invalid_properties = Array.new
|
110
|
-
if @active.nil?
|
111
|
-
invalid_properties.push('invalid value for "active", active cannot be nil.')
|
112
|
-
end
|
113
|
-
|
114
110
|
if @expires_at.nil?
|
115
111
|
invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.')
|
116
112
|
end
|
@@ -137,7 +133,6 @@ module OryHydraClient
|
|
137
133
|
# Check to see if the all the properties in the model are valid
|
138
134
|
# @return true if the model is valid
|
139
135
|
def valid?
|
140
|
-
return false if @active.nil?
|
141
136
|
return false if @expires_at.nil?
|
142
137
|
return false if @id.nil?
|
143
138
|
return false if @issued_at.nil?
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module OryHydraClient
|
16
|
-
# This request is used when an identity wants to update settings (e.g. profile data, passwords, ...) in a selfservice manner.
|
16
|
+
# This request is used when an identity wants to update settings (e.g. profile data, passwords, ...) in a selfservice manner. We recommend reading the [User Settings Documentation](../self-service/flows/user-settings)
|
17
17
|
class SettingsRequest
|
18
18
|
# Active, if set, contains the registration method that is being used. It is initially not set.
|
19
19
|
attr_accessor :active
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#Ory Kratos
|
3
|
+
|
4
|
+
#Welcome to the ORY Kratos HTTP API documentation!
|
5
|
+
|
6
|
+
The version of the OpenAPI document: latest
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for OryHydraClient::ProviderCredentialsConfig
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'ProviderCredentialsConfig' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = OryHydraClient::ProviderCredentialsConfig.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of ProviderCredentialsConfig' do
|
31
|
+
it 'should create an instance of ProviderCredentialsConfig' do
|
32
|
+
expect(@instance).to be_instance_of(OryHydraClient::ProviderCredentialsConfig)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "provider"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "subject"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ory-kratos-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0.alpha1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ORY GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- docs/OidcStrategyCredentialsConfig.md
|
101
101
|
- docs/OidcStrategyRequestMethod.md
|
102
102
|
- docs/ProfileManagementRequest.md
|
103
|
+
- docs/ProviderCredentialsConfig.md
|
103
104
|
- docs/PublicApi.md
|
104
105
|
- docs/RegistrationRequest.md
|
105
106
|
- docs/RegistrationRequestMethod.md
|
@@ -138,6 +139,7 @@ files:
|
|
138
139
|
- lib/ory-kratos-client/models/oidc_strategy_credentials_config.rb
|
139
140
|
- lib/ory-kratos-client/models/oidc_strategy_request_method.rb
|
140
141
|
- lib/ory-kratos-client/models/profile_management_request.rb
|
142
|
+
- lib/ory-kratos-client/models/provider_credentials_config.rb
|
141
143
|
- lib/ory-kratos-client/models/registration_request.rb
|
142
144
|
- lib/ory-kratos-client/models/registration_request_method.rb
|
143
145
|
- lib/ory-kratos-client/models/registration_request_method_config.rb
|
@@ -174,6 +176,7 @@ files:
|
|
174
176
|
- spec/models/oidc_strategy_credentials_config_spec.rb
|
175
177
|
- spec/models/oidc_strategy_request_method_spec.rb
|
176
178
|
- spec/models/profile_management_request_spec.rb
|
179
|
+
- spec/models/provider_credentials_config_spec.rb
|
177
180
|
- spec/models/registration_request_method_config_spec.rb
|
178
181
|
- spec/models/registration_request_method_spec.rb
|
179
182
|
- spec/models/registration_request_spec.rb
|
@@ -210,38 +213,39 @@ signing_key:
|
|
210
213
|
specification_version: 4
|
211
214
|
summary: Ory Kratos Ruby Gem
|
212
215
|
test_files:
|
216
|
+
- spec/api/admin_api_spec.rb
|
213
217
|
- spec/api/health_api_spec.rb
|
214
218
|
- spec/api/common_api_spec.rb
|
215
|
-
- spec/api/admin_api_spec.rb
|
216
219
|
- spec/api/public_api_spec.rb
|
217
220
|
- spec/api/version_api_spec.rb
|
218
221
|
- spec/api_client_spec.rb
|
219
222
|
- spec/configuration_spec.rb
|
223
|
+
- spec/models/version_spec.rb
|
224
|
+
- spec/models/profile_management_request_spec.rb
|
220
225
|
- spec/models/complete_self_service_browser_profile_management_flow_payload_spec.rb
|
221
|
-
- spec/models/request_method_config_spec.rb
|
222
|
-
- spec/models/form_field_spec.rb
|
223
226
|
- spec/models/health_status_spec.rb
|
224
|
-
- spec/models/
|
225
|
-
- spec/models/
|
226
|
-
- spec/models/
|
227
|
-
- spec/models/
|
228
|
-
- spec/models/complete_self_service_browser_settings_strategy_profile_flow_payload_spec.rb
|
227
|
+
- spec/models/health_not_ready_status_spec.rb
|
228
|
+
- spec/models/login_request_spec.rb
|
229
|
+
- spec/models/generic_error_payload_spec.rb
|
230
|
+
- spec/models/login_request_method_config_spec.rb
|
229
231
|
- spec/models/login_request_method_spec.rb
|
230
|
-
- spec/models/
|
231
|
-
- spec/models/version_spec.rb
|
232
|
+
- spec/models/error_container_spec.rb
|
232
233
|
- spec/models/session_spec.rb
|
233
|
-
- spec/models/
|
234
|
-
- spec/models/
|
235
|
-
- spec/models/verifiable_address_spec.rb
|
234
|
+
- spec/models/oidc_strategy_credentials_config_spec.rb
|
235
|
+
- spec/models/request_method_config_spec.rb
|
236
236
|
- spec/models/identity_spec.rb
|
237
|
-
- spec/models/
|
237
|
+
- spec/models/error_spec.rb
|
238
|
+
- spec/models/generic_error_spec.rb
|
239
|
+
- spec/models/complete_self_service_browser_settings_strategy_profile_flow_payload_spec.rb
|
238
240
|
- spec/models/verification_request_spec.rb
|
241
|
+
- spec/models/provider_credentials_config_spec.rb
|
242
|
+
- spec/models/settings_request_spec.rb
|
243
|
+
- spec/models/registration_request_spec.rb
|
239
244
|
- spec/models/settings_request_method_spec.rb
|
240
|
-
- spec/models/generic_error_payload_spec.rb
|
241
|
-
- spec/models/registration_request_method_config_spec.rb
|
242
245
|
- spec/models/form_spec.rb
|
243
|
-
- spec/models/
|
244
|
-
- spec/models/
|
246
|
+
- spec/models/verifiable_address_spec.rb
|
247
|
+
- spec/models/form_field_spec.rb
|
245
248
|
- spec/models/registration_request_method_spec.rb
|
246
|
-
- spec/models/
|
249
|
+
- spec/models/oidc_strategy_request_method_spec.rb
|
250
|
+
- spec/models/registration_request_method_config_spec.rb
|
247
251
|
- spec/spec_helper.rb
|