passageidentity 0.6.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/openapi_client/api/apps_api.rb +2 -2
- data/lib/openapi_client/api/magic_links_api.rb +4 -4
- data/lib/openapi_client/api/tokens_api.rb +2 -2
- data/lib/openapi_client/api/user_devices_api.rb +3 -3
- data/lib/openapi_client/api/users_api.rb +8 -8
- data/lib/openapi_client/api_client.rb +36 -30
- data/lib/openapi_client/api_error.rb +1 -1
- data/lib/openapi_client/configuration.rb +11 -1
- data/lib/openapi_client/models/app_info.rb +36 -3
- data/lib/openapi_client/models/app_response.rb +1 -1
- data/lib/openapi_client/models/apple_user_social_connection.rb +1 -1
- data/lib/openapi_client/models/auth_methods.rb +1 -1
- data/lib/openapi_client/models/create_magic_link_request.rb +2 -57
- data/lib/openapi_client/models/create_user_request.rb +1 -1
- data/lib/openapi_client/models/element_customization.rb +1 -1
- data/lib/openapi_client/models/font_family.rb +1 -1
- data/lib/openapi_client/models/github_user_social_connection.rb +1 -1
- data/lib/openapi_client/models/google_user_social_connection.rb +1 -1
- data/lib/openapi_client/models/layout_config.rb +1 -1
- data/lib/openapi_client/models/layouts.rb +1 -1
- data/lib/openapi_client/models/link.rb +1 -1
- data/lib/openapi_client/models/list_devices_response.rb +1 -1
- data/lib/openapi_client/models/list_paginated_users_item.rb +19 -2
- data/lib/openapi_client/models/list_paginated_users_response.rb +1 -1
- data/lib/openapi_client/models/magic_link.rb +1 -1
- data/lib/openapi_client/models/magic_link_auth_method.rb +1 -1
- data/lib/openapi_client/models/magic_link_channel.rb +1 -1
- data/lib/openapi_client/models/magic_link_response.rb +1 -1
- data/lib/openapi_client/models/magic_link_type.rb +1 -1
- data/lib/openapi_client/models/model400_error.rb +1 -1
- data/lib/openapi_client/models/model401_error.rb +1 -1
- data/lib/openapi_client/models/model403_error.rb +1 -1
- data/lib/openapi_client/models/model404_error.rb +3 -3
- data/lib/openapi_client/models/model500_error.rb +1 -1
- data/lib/openapi_client/models/nonce.rb +1 -1
- data/lib/openapi_client/models/otp_auth_method.rb +1 -1
- data/lib/openapi_client/models/paginated_links.rb +1 -1
- data/lib/openapi_client/models/passkeys_auth_method.rb +1 -1
- data/lib/openapi_client/models/social_connection_type.rb +41 -0
- data/lib/openapi_client/models/technologies.rb +1 -1
- data/lib/openapi_client/models/theme_type.rb +41 -0
- data/lib/openapi_client/models/ttl_display_unit.rb +1 -1
- data/lib/openapi_client/models/update_user_request.rb +1 -1
- data/lib/openapi_client/models/user_event_action.rb +41 -0
- data/lib/openapi_client/models/user_event_status.rb +1 -1
- data/lib/openapi_client/models/user_info.rb +19 -2
- data/lib/openapi_client/models/user_metadata_field.rb +1 -1
- data/lib/openapi_client/models/user_metadata_field_type.rb +1 -1
- data/lib/openapi_client/models/user_recent_event.rb +51 -5
- data/lib/openapi_client/models/user_response.rb +1 -1
- data/lib/openapi_client/models/user_social_connections.rb +1 -1
- data/lib/openapi_client/models/user_status.rb +1 -1
- data/lib/openapi_client/models/web_authn_devices.rb +1 -1
- data/lib/openapi_client/models/web_authn_icons.rb +1 -1
- data/lib/openapi_client/models/web_authn_type.rb +1 -1
- data/lib/openapi_client/version.rb +1 -1
- data/lib/openapi_client.rb +4 -4
- data/lib/passageidentity/auth.rb +205 -104
- data/lib/passageidentity/client.rb +71 -59
- data/lib/passageidentity/error.rb +42 -16
- data/lib/passageidentity/user_api.rb +120 -161
- data/lib/passageidentity/version.rb +1 -1
- data/lib/passageidentity.rb +6 -2
- metadata +33 -79
- data/.github/workflows/deploy.yml +0 -30
- data/.github/workflows/on-pull-request.yml +0 -33
- data/.gitignore +0 -58
- data/CHANGELOG.md +0 -57
- data/CONTRIBUTING.md +0 -66
- data/Gemfile +0 -13
- data/LICENSE +0 -21
- data/README.md +0 -84
- data/docs/custom/AuthApi.md +0 -141
- data/docs/custom/ClientApi.md +0 -107
- data/docs/custom/UserApi.md +0 -419
- data/docs/generated/AppInfo.md +0 -94
- data/docs/generated/AppResponse.md +0 -18
- data/docs/generated/AppleUserSocialConnection.md +0 -24
- data/docs/generated/AppsApi.md +0 -77
- data/docs/generated/AuthMethods.md +0 -22
- data/docs/generated/CreateMagicLinkRequest.md +0 -36
- data/docs/generated/CreateUserRequest.md +0 -22
- data/docs/generated/ElementCustomization.md +0 -56
- data/docs/generated/FontFamily.md +0 -15
- data/docs/generated/GithubUserSocialConnection.md +0 -24
- data/docs/generated/GoogleUserSocialConnection.md +0 -24
- data/docs/generated/LayoutConfig.md +0 -26
- data/docs/generated/Layouts.md +0 -20
- data/docs/generated/Link.md +0 -18
- data/docs/generated/ListDevicesResponse.md +0 -18
- data/docs/generated/ListPaginatedUsersItem.md +0 -38
- data/docs/generated/ListPaginatedUsersResponse.md +0 -28
- data/docs/generated/MagicLink.md +0 -36
- data/docs/generated/MagicLinkAuthMethod.md +0 -22
- data/docs/generated/MagicLinkChannel.md +0 -15
- data/docs/generated/MagicLinkResponse.md +0 -18
- data/docs/generated/MagicLinkType.md +0 -15
- data/docs/generated/MagicLinksApi.md +0 -79
- data/docs/generated/Model400Error.md +0 -20
- data/docs/generated/Model401Error.md +0 -20
- data/docs/generated/Model403Error.md +0 -20
- data/docs/generated/Model404Error.md +0 -20
- data/docs/generated/Model500Error.md +0 -20
- data/docs/generated/Nonce.md +0 -18
- data/docs/generated/OtpAuthMethod.md +0 -22
- data/docs/generated/PaginatedLinks.md +0 -26
- data/docs/generated/PasskeysAuthMethod.md +0 -18
- data/docs/generated/README.md +0 -158
- data/docs/generated/Technologies.md +0 -15
- data/docs/generated/TokensApi.md +0 -78
- data/docs/generated/TtlDisplayUnit.md +0 -15
- data/docs/generated/UpdateUserRequest.md +0 -22
- data/docs/generated/UserDevicesApi.md +0 -152
- data/docs/generated/UserEventStatus.md +0 -15
- data/docs/generated/UserInfo.md +0 -48
- data/docs/generated/UserMetadataField.md +0 -28
- data/docs/generated/UserMetadataFieldType.md +0 -15
- data/docs/generated/UserRecentEvent.md +0 -30
- data/docs/generated/UserResponse.md +0 -18
- data/docs/generated/UserSocialConnections.md +0 -22
- data/docs/generated/UserStatus.md +0 -15
- data/docs/generated/UsersApi.md +0 -534
- data/docs/generated/WebAuthnDevices.md +0 -34
- data/docs/generated/WebAuthnIcons.md +0 -20
- data/docs/generated/WebAuthnType.md +0 -15
- data/generate.sh +0 -31
- data/openapitools.json +0 -7
- data/passageidentity.gemspec +0 -32
- data/tests/all.rb +0 -3
- data/tests/app_test.rb +0 -15
- data/tests/auth_test.rb +0 -74
- data/tests/errors_test.rb +0 -30
- data/tests/magic_link_test.rb +0 -22
- data/tests/user_api_test.rb +0 -121
data/docs/custom/ClientApi.md
DELETED
@@ -1,107 +0,0 @@
|
|
1
|
-
# Passage::ClientApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.passage.id/v1*
|
4
|
-
|
5
|
-
| Method | HTTP request | Description |
|
6
|
-
| ------ | ------------ | ----------- |
|
7
|
-
| [**get_app**](ClientApi.md#get_app) | **GET** /apps/{app_id} | Get App |
|
8
|
-
| [**create_magic_link**](ClientApi.md#create_magic_link) | **POST** /apps/{app_id}/magic-links | Create Embeddable Magic Link |
|
9
|
-
|
10
|
-
|
11
|
-
## get_app
|
12
|
-
|
13
|
-
> <AppResponse> get_app()
|
14
|
-
|
15
|
-
Get App
|
16
|
-
|
17
|
-
Get app information.
|
18
|
-
|
19
|
-
### Examples
|
20
|
-
|
21
|
-
```ruby
|
22
|
-
PassageClient = Passage::Client.new(app_id: PASSAGE_APP_ID, api_key: PASSAGE_API_KEY)
|
23
|
-
|
24
|
-
begin
|
25
|
-
# Get App
|
26
|
-
result = PassageClient.get_app()
|
27
|
-
p result
|
28
|
-
rescue OpenapiClient::ApiError => e
|
29
|
-
puts "Error when calling AppsApi->get_app: #{e}"
|
30
|
-
end
|
31
|
-
```
|
32
|
-
|
33
|
-
|
34
|
-
### Parameters
|
35
|
-
|
36
|
-
| Name | Type | Description | Notes |
|
37
|
-
| ---- | ---- | ----------- | ----- |
|
38
|
-
| **app_id** | **String** | App ID | |
|
39
|
-
|
40
|
-
### Return type
|
41
|
-
|
42
|
-
[**AppResponse**](AppResponse.md)
|
43
|
-
|
44
|
-
### Authorization
|
45
|
-
|
46
|
-
[bearerAuth](../README.md#bearerAuth)
|
47
|
-
|
48
|
-
### HTTP request headers
|
49
|
-
|
50
|
-
- **Content-Type**: Not defined
|
51
|
-
- **Accept**: application/json
|
52
|
-
|
53
|
-
---
|
54
|
-
|
55
|
-
|
56
|
-
## create_magic_link
|
57
|
-
|
58
|
-
> <MagicLinkResponse> create_magic_link(create_magic_link_request)
|
59
|
-
|
60
|
-
Create Embeddable Magic Link
|
61
|
-
|
62
|
-
Create magic link for a user.
|
63
|
-
|
64
|
-
### Examples
|
65
|
-
|
66
|
-
```ruby
|
67
|
-
PassageClient = Passage::Client.new(app_id: PASSAGE_APP_ID, api_key: PASSAGE_API_KEY)
|
68
|
-
|
69
|
-
api_instance = PassageClient.create_magic_link()
|
70
|
-
|
71
|
-
create_magic_link_request = OpenapiClient::create_magic_link({channel: OpenapiClient::MagicLinkChannel::EMAIL, email: 'email_example', magic_link_path: 'magic_link_path_example', phone: 'phone_example', redirect_url: 'redirect_url_example', _send: false, ttl: 37, user_id: 'user_id_example'}) # CreateMagicLinkRequest | magic link request
|
72
|
-
|
73
|
-
begin
|
74
|
-
# Create Embeddable Magic Link
|
75
|
-
result = PassageClient.create_magic_link.create_magic_link(create_magic_link_request)
|
76
|
-
p result
|
77
|
-
rescue OpenapiClient::ApiError => e
|
78
|
-
puts "Error when calling MagicLinksApi->create_magic_link: #{e}"
|
79
|
-
end
|
80
|
-
```
|
81
|
-
|
82
|
-
#### Using the create_magic_link_with_http_info variant
|
83
|
-
|
84
|
-
This returns an Array which contains the response data, status code and headers.
|
85
|
-
|
86
|
-
> <Array(<MagicLinkResponse>, Integer, Hash)> create_magic_link_with_http_info(app_id, create_magic_link_request)
|
87
|
-
|
88
|
-
|
89
|
-
### Parameters
|
90
|
-
|
91
|
-
| Name | Type | Description | Notes |
|
92
|
-
| ---- | ---- | ----------- | ----- |
|
93
|
-
| **create_magic_link_request** | [**CreateMagicLinkRequest**](CreateMagicLinkRequest.md) | magic link request | |
|
94
|
-
|
95
|
-
### Return type
|
96
|
-
|
97
|
-
[**MagicLinkResponse**](MagicLinkResponse.md)
|
98
|
-
|
99
|
-
### Authorization
|
100
|
-
|
101
|
-
[bearerAuth](../README.md#bearerAuth)
|
102
|
-
|
103
|
-
### HTTP request headers
|
104
|
-
|
105
|
-
- **Content-Type**: application/json
|
106
|
-
- **Accept**: application/json
|
107
|
-
|
data/docs/custom/UserApi.md
DELETED
@@ -1,419 +0,0 @@
|
|
1
|
-
# Passage::UsersApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.passage.id/v1*
|
4
|
-
|
5
|
-
| Method | HTTP request | Description |
|
6
|
-
| ------ | ------------ | ----------- |
|
7
|
-
| [**activate**](UsersApi.md#activate) | **PATCH** /apps/{app_id}/users/{user_id}/activate | Activate User |
|
8
|
-
| [**create**](UsersApi.md#create) | **POST** /apps/{app_id}/users | Create User |
|
9
|
-
| [**deactivate**](UsersApi.md#deactivate) | **PATCH** /apps/{app_id}/users/{user_id}/deactivate | Deactivate User |
|
10
|
-
| [**delete**](UsersApi.md#delete) | **DELETE** /apps/{app_id}/users/{user_id} | Delete User |
|
11
|
-
| [**get**](UsersApi.md#get) | **GET** /apps/{app_id}/users/{user_id} | Get User |
|
12
|
-
| [**update**](UsersApi.md#update) | **PATCH** /apps/{app_id}/users/{user_id} | Update User |
|
13
|
-
| [**delete_device**](UsersApi.md#delete_device) | **DELETE** /apps/{app_id}/users/{user_id}/devices/{device_id} | Delete a device for a user |
|
14
|
-
| [**list_devices**](UsersApi.md#list_devices) | **GET** /apps/{app_id}/users/{user_id}/devices | List User Devices |
|
15
|
-
| [**signout**](UsersApi.md#signout) | DELETE /apps/{app_id}/users/{user_id}/tokens | **Deprecated:** Signout a user |
|
16
|
-
|
17
|
-
|
18
|
-
## activate
|
19
|
-
|
20
|
-
> <UserResponse> activate(user_id)
|
21
|
-
|
22
|
-
Activate User
|
23
|
-
|
24
|
-
Activate a user. They will now be able to login.
|
25
|
-
|
26
|
-
### Examples
|
27
|
-
|
28
|
-
```ruby
|
29
|
-
api_instance = Passage::UsersApi.new
|
30
|
-
user_id = 'user_id_example' # String | User ID
|
31
|
-
|
32
|
-
begin
|
33
|
-
# Activate User
|
34
|
-
result = api_instance.user.activate(user_id)
|
35
|
-
p result
|
36
|
-
rescue OpenapiClient::ApiError => e
|
37
|
-
puts "Error when calling UsersApi->activate: #{e}"
|
38
|
-
end
|
39
|
-
```
|
40
|
-
|
41
|
-
### Parameters
|
42
|
-
|
43
|
-
| Name | Type | Description | Notes |
|
44
|
-
| ---- | ---- | ----------- | ----- |
|
45
|
-
| **user_id** | **String** | User ID | |
|
46
|
-
|
47
|
-
### Return type
|
48
|
-
|
49
|
-
[**UserResponse**](UserResponse.md)
|
50
|
-
|
51
|
-
### Authorization
|
52
|
-
|
53
|
-
[bearerAuth](../README.md#bearerAuth)
|
54
|
-
|
55
|
-
### HTTP request headers
|
56
|
-
|
57
|
-
- **Content-Type**: Not defined
|
58
|
-
- **Accept**: application/json
|
59
|
-
|
60
|
-
---
|
61
|
-
|
62
|
-
## create
|
63
|
-
|
64
|
-
> <UserResponse> create(create_user_request)
|
65
|
-
|
66
|
-
Create User
|
67
|
-
|
68
|
-
Create user for an application. Must provide an email of phone number identifier.
|
69
|
-
|
70
|
-
### Examples
|
71
|
-
|
72
|
-
```ruby
|
73
|
-
api_instance = Passage::UsersApi.new
|
74
|
-
create_user_request = OpenapiClient::CreateUserRequest.new # CreateUserRequest | email, phone, user_metadata
|
75
|
-
|
76
|
-
begin
|
77
|
-
# Create User
|
78
|
-
result = api_instance.user.create(create_user_request)
|
79
|
-
p result
|
80
|
-
rescue OpenapiClient::ApiError => e
|
81
|
-
puts "Error when calling UsersApi->create: #{e}"
|
82
|
-
end
|
83
|
-
```
|
84
|
-
|
85
|
-
### Parameters
|
86
|
-
|
87
|
-
| Name | Type | Description | Notes |
|
88
|
-
| ---- | ---- | ----------- | ----- |
|
89
|
-
| **create_user_request** | [**CreateUserRequest**](CreateUserRequest.md) | email, phone, user_metadata | |
|
90
|
-
|
91
|
-
### Return type
|
92
|
-
|
93
|
-
[**UserResponse**](UserResponse.md)
|
94
|
-
|
95
|
-
### Authorization
|
96
|
-
|
97
|
-
[bearerAuth](../README.md#bearerAuth)
|
98
|
-
|
99
|
-
### HTTP request headers
|
100
|
-
|
101
|
-
- **Content-Type**: application/json
|
102
|
-
- **Accept**: application/json
|
103
|
-
|
104
|
-
---
|
105
|
-
|
106
|
-
## deactivate
|
107
|
-
|
108
|
-
> <UserResponse> deactivate(user_id)
|
109
|
-
|
110
|
-
Deactivate User
|
111
|
-
|
112
|
-
Deactivate a user. Their account will still exist, but they will not be able to login.
|
113
|
-
|
114
|
-
### Examples
|
115
|
-
|
116
|
-
```ruby
|
117
|
-
api_instance = Passage::UsersApi.new
|
118
|
-
user_id = 'user_id_example' # String | User ID
|
119
|
-
|
120
|
-
begin
|
121
|
-
# Deactivate User
|
122
|
-
result = api_instance.user.deactivate(user_id)
|
123
|
-
p result
|
124
|
-
rescue OpenapiClient::ApiError => e
|
125
|
-
puts "Error when calling UsersApi->deactivate: #{e}"
|
126
|
-
end
|
127
|
-
```
|
128
|
-
|
129
|
-
|
130
|
-
### Parameters
|
131
|
-
|
132
|
-
| Name | Type | Description | Notes |
|
133
|
-
| ---- | ---- | ----------- | ----- |
|
134
|
-
| **user_id** | **String** | User ID | |
|
135
|
-
|
136
|
-
### Return type
|
137
|
-
|
138
|
-
[**UserResponse**](UserResponse.md)
|
139
|
-
|
140
|
-
### Authorization
|
141
|
-
|
142
|
-
[bearerAuth](../README.md#bearerAuth)
|
143
|
-
|
144
|
-
### HTTP request headers
|
145
|
-
|
146
|
-
- **Content-Type**: Not defined
|
147
|
-
- **Accept**: application/json
|
148
|
-
|
149
|
-
---
|
150
|
-
|
151
|
-
## delete
|
152
|
-
|
153
|
-
> delete(user_id)
|
154
|
-
|
155
|
-
Delete User
|
156
|
-
|
157
|
-
Delete a user.
|
158
|
-
|
159
|
-
### Examples
|
160
|
-
|
161
|
-
```ruby
|
162
|
-
api_instance = Passage::UsersApi.new
|
163
|
-
user_id = 'user_id_example' # String | User ID
|
164
|
-
|
165
|
-
begin
|
166
|
-
# Delete User
|
167
|
-
api_instance.user.delete(user_id)
|
168
|
-
rescue OpenapiClient::ApiError => e
|
169
|
-
puts "Error when calling UsersApi->delete: #{e}"
|
170
|
-
end
|
171
|
-
```
|
172
|
-
|
173
|
-
### Parameters
|
174
|
-
|
175
|
-
| Name | Type | Description | Notes |
|
176
|
-
| ---- | ---- | ----------- | ----- |
|
177
|
-
| **user_id** | **String** | User ID | |
|
178
|
-
|
179
|
-
### Return type
|
180
|
-
|
181
|
-
nil (empty response body)
|
182
|
-
|
183
|
-
### Authorization
|
184
|
-
|
185
|
-
[bearerAuth](../README.md#bearerAuth)
|
186
|
-
|
187
|
-
### HTTP request headers
|
188
|
-
|
189
|
-
- **Content-Type**: Not defined
|
190
|
-
- **Accept**: application/json
|
191
|
-
|
192
|
-
---
|
193
|
-
|
194
|
-
## get
|
195
|
-
|
196
|
-
> <UserResponse> get(user_id)
|
197
|
-
|
198
|
-
Get User
|
199
|
-
|
200
|
-
Get information about a user.
|
201
|
-
|
202
|
-
### Examples
|
203
|
-
|
204
|
-
```ruby
|
205
|
-
api_instance = Passage::UsersApi.new
|
206
|
-
user_id = 'user_id_example' # String | User ID
|
207
|
-
|
208
|
-
begin
|
209
|
-
# Get User
|
210
|
-
result = api_instance.user.get(user_id)
|
211
|
-
p result
|
212
|
-
rescue OpenapiClient::ApiError => e
|
213
|
-
puts "Error when calling UsersApi->get: #{e}"
|
214
|
-
end
|
215
|
-
```
|
216
|
-
|
217
|
-
### Parameters
|
218
|
-
|
219
|
-
| Name | Type | Description | Notes |
|
220
|
-
| ---- | ---- | ----------- | ----- |
|
221
|
-
| **user_id** | **String** | User ID | |
|
222
|
-
|
223
|
-
### Return type
|
224
|
-
|
225
|
-
[**UserResponse**](UserResponse.md)
|
226
|
-
|
227
|
-
### Authorization
|
228
|
-
|
229
|
-
[bearerAuth](../README.md#bearerAuth)
|
230
|
-
|
231
|
-
### HTTP request headers
|
232
|
-
|
233
|
-
- **Content-Type**: Not defined
|
234
|
-
- **Accept**: application/json
|
235
|
-
|
236
|
-
---
|
237
|
-
|
238
|
-
## update
|
239
|
-
|
240
|
-
> <UserResponse> update(user_id, update_user_request)
|
241
|
-
|
242
|
-
Update User
|
243
|
-
|
244
|
-
Update a user's information.
|
245
|
-
|
246
|
-
### Examples
|
247
|
-
|
248
|
-
```ruby
|
249
|
-
api_instance = Passage::UsersApi.new
|
250
|
-
user_id = 'user_id_example' # String | User ID
|
251
|
-
update_user_request = OpenapiClient::UpdateUserRequest.new # UpdateUserRequest | user settings
|
252
|
-
|
253
|
-
begin
|
254
|
-
# Update User
|
255
|
-
result = api_instance.user.update(user_id, update_user_request)
|
256
|
-
p result
|
257
|
-
rescue OpenapiClient::ApiError => e
|
258
|
-
puts "Error when calling UsersApi->update: #{e}"
|
259
|
-
end
|
260
|
-
```
|
261
|
-
|
262
|
-
### Parameters
|
263
|
-
|
264
|
-
| Name | Type | Description | Notes |
|
265
|
-
| ---- | ---- | ----------- | ----- |
|
266
|
-
| **user_id** | **String** | User ID | |
|
267
|
-
| **update_user_request** | [**UpdateUserRequest**](UpdateUserRequest.md) | user settings | |
|
268
|
-
|
269
|
-
### Return type
|
270
|
-
|
271
|
-
[**UserResponse**](UserResponse.md)
|
272
|
-
|
273
|
-
### Authorization
|
274
|
-
|
275
|
-
[bearerAuth](../README.md#bearerAuth)
|
276
|
-
|
277
|
-
### HTTP request headers
|
278
|
-
|
279
|
-
- **Content-Type**: application/json
|
280
|
-
- **Accept**: application/json
|
281
|
-
|
282
|
-
---
|
283
|
-
|
284
|
-
## delete_device
|
285
|
-
|
286
|
-
> delete_device(user_id, device_id)
|
287
|
-
|
288
|
-
Delete a device for a user
|
289
|
-
|
290
|
-
Delete a device for a user.
|
291
|
-
|
292
|
-
### Examples
|
293
|
-
|
294
|
-
```ruby
|
295
|
-
api_instance = Passage::UserDevicesApi.new
|
296
|
-
user_id = 'user_id_example' # String | User ID
|
297
|
-
device_id = 'device_id_example' # String | Device ID
|
298
|
-
|
299
|
-
begin
|
300
|
-
# Delete a device for a user
|
301
|
-
api_instance.user.delete_device(user_id, device_id)
|
302
|
-
rescue OpenapiClient::ApiError => e
|
303
|
-
puts "Error when calling UserDevicesApi->delete_device: #{e}"
|
304
|
-
end
|
305
|
-
```
|
306
|
-
|
307
|
-
### Parameters
|
308
|
-
|
309
|
-
| Name | Type | Description | Notes |
|
310
|
-
| ---- | ---- | ----------- | ----- |
|
311
|
-
| **user_id** | **String** | User ID | |
|
312
|
-
| **device_id** | **String** | Device ID | |
|
313
|
-
|
314
|
-
### Return type
|
315
|
-
|
316
|
-
nil (empty response body)
|
317
|
-
|
318
|
-
### Authorization
|
319
|
-
|
320
|
-
[bearerAuth](../README.md#bearerAuth)
|
321
|
-
|
322
|
-
### HTTP request headers
|
323
|
-
|
324
|
-
- **Content-Type**: Not defined
|
325
|
-
- **Accept**: application/json
|
326
|
-
|
327
|
-
|
328
|
-
---
|
329
|
-
|
330
|
-
## list_devices
|
331
|
-
|
332
|
-
> <ListDevicesResponse> list_devices(user_id)
|
333
|
-
|
334
|
-
List User Devices
|
335
|
-
|
336
|
-
List user devices.
|
337
|
-
|
338
|
-
### Examples
|
339
|
-
|
340
|
-
```ruby
|
341
|
-
api_instance = Passage::UserDevicesApi.new
|
342
|
-
user_id = 'user_id_example' # String | User ID
|
343
|
-
|
344
|
-
begin
|
345
|
-
# List User Devices
|
346
|
-
result = api_instance.user.list_devices(user_id)
|
347
|
-
p result
|
348
|
-
rescue OpenapiClient::ApiError => e
|
349
|
-
puts "Error when calling UserDevicesApi->list_devices: #{e}"
|
350
|
-
end
|
351
|
-
```
|
352
|
-
|
353
|
-
### Parameters
|
354
|
-
|
355
|
-
| Name | Type | Description | Notes |
|
356
|
-
| ---- | ---- | ----------- | ----- |
|
357
|
-
| **user_id** | **String** | User ID | |
|
358
|
-
|
359
|
-
### Return type
|
360
|
-
|
361
|
-
[**ListDevicesResponse**](ListDevicesResponse.md)
|
362
|
-
|
363
|
-
### Authorization
|
364
|
-
|
365
|
-
[bearerAuth](../README.md#bearerAuth)
|
366
|
-
|
367
|
-
### HTTP request headers
|
368
|
-
|
369
|
-
- **Content-Type**: Not defined
|
370
|
-
- **Accept**: application/json
|
371
|
-
|
372
|
-
---
|
373
|
-
|
374
|
-
## signout
|
375
|
-
|
376
|
-
> signout(user_id)
|
377
|
-
|
378
|
-
Revokes refresh tokens
|
379
|
-
|
380
|
-
Revokes all refresh tokens for a user
|
381
|
-
|
382
|
-
### Examples
|
383
|
-
|
384
|
-
```ruby
|
385
|
-
require 'passageidentity'
|
386
|
-
|
387
|
-
class ApplicationController < ActionController::Base
|
388
|
-
PassageClient = Passage::Client.new(app_id: PASSAGE_APP_ID, api_key: PASSAGE_API_KEY)
|
389
|
-
|
390
|
-
def revoke_passage_user_tokens!
|
391
|
-
begin
|
392
|
-
# tokens are revoked
|
393
|
-
revoke = PassageClient.auth.signout(USER_ID)
|
394
|
-
rescue Exception => e
|
395
|
-
# handle exception (user is not authorized)
|
396
|
-
end
|
397
|
-
end
|
398
|
-
end
|
399
|
-
```
|
400
|
-
|
401
|
-
|
402
|
-
### Parameters
|
403
|
-
|
404
|
-
| Name | Type | Description | Notes |
|
405
|
-
| ---- | ---- | ----------- | ----- |
|
406
|
-
| **user_id** | **String** | User ID | |
|
407
|
-
|
408
|
-
### Return type
|
409
|
-
|
410
|
-
bool
|
411
|
-
|
412
|
-
### Authorization
|
413
|
-
|
414
|
-
[bearerAuth](../README.md#bearerAuth)
|
415
|
-
|
416
|
-
### HTTP request headers
|
417
|
-
|
418
|
-
- **Content-Type**: Not defined
|
419
|
-
- **Accept**: application/json
|
data/docs/generated/AppInfo.md
DELETED
@@ -1,94 +0,0 @@
|
|
1
|
-
# OpenapiClient::AppInfo
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **additional_auth_origins** | **Array<String>** | | |
|
8
|
-
| **allowed_callback_urls** | **Array<String>** | The valid URLs where users can be redirected after authentication. | |
|
9
|
-
| **allowed_identifier** | **String** | | |
|
10
|
-
| **allowed_logout_urls** | **Array<String>** | The valid URLs where users can be redirected after logging out. | |
|
11
|
-
| **application_login_uri** | **String** | A route within your application that redirects to the Authorization URL endpoint. | |
|
12
|
-
| **auth_fallback_method** | **String** | Deprecated Property. Please refer to `auth_methods` to view settings for individual authentication methods. | |
|
13
|
-
| **auth_fallback_method_ttl** | **Integer** | Deprecated Property. Please refer to `auth_methods` to view settings for individual authentication methods. | |
|
14
|
-
| **auth_methods** | [**AuthMethods**](AuthMethods.md) | | |
|
15
|
-
| **auth_origin** | **String** | | |
|
16
|
-
| **created_at** | **Time** | | |
|
17
|
-
| **default_language** | **String** | | |
|
18
|
-
| **id** | **String** | | |
|
19
|
-
| **layouts** | [**Layouts**](Layouts.md) | | |
|
20
|
-
| **login_url** | **String** | | |
|
21
|
-
| **light_logo_url** | **String** | | [optional] |
|
22
|
-
| **dark_logo_url** | **String** | | [optional] |
|
23
|
-
| **name** | **String** | | |
|
24
|
-
| **hosted** | **Boolean** | whether or not the app's login page hosted by passage | |
|
25
|
-
| **hosted_subdomain** | **String** | the subdomain of the app's hosted login page | |
|
26
|
-
| **id_token_lifetime** | **Integer** | | [optional] |
|
27
|
-
| **passage_branding** | **Boolean** | | |
|
28
|
-
| **profile_management** | **Boolean** | | |
|
29
|
-
| **public_signup** | **Boolean** | | |
|
30
|
-
| **redirect_url** | **String** | | |
|
31
|
-
| **refresh_absolute_lifetime** | **Integer** | | |
|
32
|
-
| **refresh_enabled** | **Boolean** | | |
|
33
|
-
| **refresh_inactivity_lifetime** | **Integer** | | |
|
34
|
-
| **require_email_verification** | **Boolean** | | |
|
35
|
-
| **require_identifier_verification** | **Boolean** | | |
|
36
|
-
| **required_identifier** | **String** | | |
|
37
|
-
| **role** | **String** | | |
|
38
|
-
| **rsa_public_key** | **String** | | |
|
39
|
-
| **secret** | **String** | can only be retrieved by an app admin | [optional] |
|
40
|
-
| **session_timeout_length** | **Integer** | | |
|
41
|
-
| **type** | **String** | | |
|
42
|
-
| **user_metadata_schema** | [**Array<UserMetadataField>**](UserMetadataField.md) | | |
|
43
|
-
| **technologies** | [**Array<Technologies>**](Technologies.md) | | |
|
44
|
-
| **element_customization** | [**ElementCustomization**](ElementCustomization.md) | | |
|
45
|
-
| **element_customization_dark** | [**ElementCustomization**](ElementCustomization.md) | | |
|
46
|
-
|
47
|
-
## Example
|
48
|
-
|
49
|
-
```ruby
|
50
|
-
require 'openapi_client'
|
51
|
-
|
52
|
-
instance = OpenapiClient::AppInfo.new(
|
53
|
-
additional_auth_origins: null,
|
54
|
-
allowed_callback_urls: null,
|
55
|
-
allowed_identifier: null,
|
56
|
-
allowed_logout_urls: null,
|
57
|
-
application_login_uri: null,
|
58
|
-
auth_fallback_method: null,
|
59
|
-
auth_fallback_method_ttl: null,
|
60
|
-
auth_methods: null,
|
61
|
-
auth_origin: null,
|
62
|
-
created_at: null,
|
63
|
-
default_language: null,
|
64
|
-
id: null,
|
65
|
-
layouts: null,
|
66
|
-
login_url: null,
|
67
|
-
light_logo_url: null,
|
68
|
-
dark_logo_url: null,
|
69
|
-
name: null,
|
70
|
-
hosted: null,
|
71
|
-
hosted_subdomain: null,
|
72
|
-
id_token_lifetime: null,
|
73
|
-
passage_branding: null,
|
74
|
-
profile_management: null,
|
75
|
-
public_signup: null,
|
76
|
-
redirect_url: null,
|
77
|
-
refresh_absolute_lifetime: null,
|
78
|
-
refresh_enabled: null,
|
79
|
-
refresh_inactivity_lifetime: null,
|
80
|
-
require_email_verification: null,
|
81
|
-
require_identifier_verification: null,
|
82
|
-
required_identifier: null,
|
83
|
-
role: null,
|
84
|
-
rsa_public_key: null,
|
85
|
-
secret: null,
|
86
|
-
session_timeout_length: null,
|
87
|
-
type: null,
|
88
|
-
user_metadata_schema: null,
|
89
|
-
technologies: null,
|
90
|
-
element_customization: null,
|
91
|
-
element_customization_dark: null
|
92
|
-
)
|
93
|
-
```
|
94
|
-
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# OpenapiClient::AppResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **app** | [**AppInfo**](AppInfo.md) | | |
|
8
|
-
|
9
|
-
## Example
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'openapi_client'
|
13
|
-
|
14
|
-
instance = OpenapiClient::AppResponse.new(
|
15
|
-
app: null
|
16
|
-
)
|
17
|
-
```
|
18
|
-
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# OpenapiClient::AppleUserSocialConnection
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **provider_id** | **String** | The external ID of the Social Connection. | |
|
8
|
-
| **created_at** | **Time** | | |
|
9
|
-
| **last_login_at** | **Time** | | |
|
10
|
-
| **provider_identifier** | **String** | The email of connected social user. | |
|
11
|
-
|
12
|
-
## Example
|
13
|
-
|
14
|
-
```ruby
|
15
|
-
require 'openapi_client'
|
16
|
-
|
17
|
-
instance = OpenapiClient::AppleUserSocialConnection.new(
|
18
|
-
provider_id: null,
|
19
|
-
created_at: null,
|
20
|
-
last_login_at: null,
|
21
|
-
provider_identifier: null
|
22
|
-
)
|
23
|
-
```
|
24
|
-
|