passageidentity 0.2.3 → 0.3.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/CHANGELOG.md +21 -0
- data/README.md +18 -61
- data/docs/custom/AuthApi.md +141 -0
- data/docs/custom/ClientApi.md +107 -0
- data/docs/custom/UserApi.md +419 -0
- data/docs/generated/AppInfo.md +94 -0
- data/docs/generated/AppResponse.md +18 -0
- data/docs/generated/AppsApi.md +77 -0
- data/docs/generated/AuthMethods.md +22 -0
- data/docs/generated/CreateMagicLinkRequest.md +36 -0
- data/docs/generated/CreateUserRequest.md +22 -0
- data/docs/generated/ElementCustomization.md +56 -0
- data/docs/generated/FontFamily.md +15 -0
- data/docs/generated/LayoutConfig.md +26 -0
- data/docs/generated/Layouts.md +20 -0
- data/docs/generated/ListDevicesResponse.md +18 -0
- data/docs/generated/MagicLink.md +36 -0
- data/docs/generated/MagicLinkAuthMethod.md +22 -0
- data/docs/generated/MagicLinkChannel.md +15 -0
- data/docs/generated/MagicLinkResponse.md +18 -0
- data/docs/generated/MagicLinkType.md +15 -0
- data/docs/generated/MagicLinksApi.md +79 -0
- data/docs/generated/Model400Error.md +20 -0
- data/docs/generated/Model401Error.md +20 -0
- data/docs/generated/Model404Error.md +20 -0
- data/docs/generated/Model500Error.md +20 -0
- data/docs/generated/OtpAuthMethod.md +22 -0
- data/docs/generated/PasskeysAuthMethod.md +18 -0
- data/docs/generated/Technologies.md +15 -0
- data/docs/generated/TokensApi.md +78 -0
- data/docs/generated/TtlDisplayUnit.md +15 -0
- data/docs/generated/UpdateMagicLinkAuthMethod.md +22 -0
- data/docs/generated/UpdateOtpAuthMethod.md +22 -0
- data/docs/generated/UpdatePasskeysAuthMethod.md +18 -0
- data/docs/generated/UpdateUserRequest.md +22 -0
- data/docs/generated/UserDevicesApi.md +152 -0
- data/docs/generated/UserEventInfo.md +26 -0
- data/docs/generated/UserInfo.md +46 -0
- data/docs/generated/UserMetadataField.md +28 -0
- data/docs/generated/UserMetadataFieldType.md +15 -0
- data/docs/generated/UserResponse.md +18 -0
- data/docs/generated/UserStatus.md +15 -0
- data/docs/generated/UsersApi.md +440 -0
- data/docs/generated/WebAuthnDevices.md +34 -0
- data/docs/generated/WebAuthnIcons.md +20 -0
- data/docs/generated/WebAuthnType.md +15 -0
- data/generate.sh +31 -0
- data/lib/openapi_client/api/apps_api.rb +85 -0
- data/lib/openapi_client/api/magic_links_api.rb +96 -0
- data/lib/openapi_client/api/tokens_api.rb +91 -0
- data/lib/openapi_client/api/user_devices_api.rb +166 -0
- data/lib/openapi_client/api/users_api.rb +452 -0
- data/lib/openapi_client/api_client.rb +431 -0
- data/lib/openapi_client/api_error.rb +58 -0
- data/lib/openapi_client/configuration.rb +383 -0
- data/lib/openapi_client/models/app_info.rb +853 -0
- data/lib/openapi_client/models/app_response.rb +221 -0
- data/lib/openapi_client/models/auth_methods.rb +254 -0
- data/lib/openapi_client/models/create_magic_link_request.rb +374 -0
- data/lib/openapi_client/models/create_user_request.rb +234 -0
- data/lib/openapi_client/models/element_customization.rb +457 -0
- data/lib/openapi_client/models/font_family.rb +58 -0
- data/lib/openapi_client/models/layout_config.rb +285 -0
- data/lib/openapi_client/models/layouts.rb +241 -0
- data/lib/openapi_client/models/list_devices_response.rb +223 -0
- data/lib/openapi_client/models/magic_link.rb +387 -0
- data/lib/openapi_client/models/magic_link_auth_method.rb +302 -0
- data/lib/openapi_client/models/magic_link_channel.rb +40 -0
- data/lib/openapi_client/models/magic_link_response.rb +221 -0
- data/lib/openapi_client/models/magic_link_type.rb +40 -0
- data/lib/openapi_client/models/model400_error.rb +271 -0
- data/lib/openapi_client/models/model401_error.rb +271 -0
- data/lib/openapi_client/models/model404_error.rb +271 -0
- data/lib/openapi_client/models/model500_error.rb +271 -0
- data/lib/openapi_client/models/otp_auth_method.rb +302 -0
- data/lib/openapi_client/models/passkeys_auth_method.rb +228 -0
- data/lib/openapi_client/models/technologies.rb +46 -0
- data/lib/openapi_client/models/ttl_display_unit.rb +42 -0
- data/lib/openapi_client/models/update_magic_link_auth_method.rb +276 -0
- data/lib/openapi_client/models/update_otp_auth_method.rb +276 -0
- data/lib/openapi_client/models/update_passkeys_auth_method.rb +216 -0
- data/lib/openapi_client/models/update_user_request.rb +232 -0
- data/lib/openapi_client/models/user_event_info.rb +285 -0
- data/lib/openapi_client/models/user_info.rb +470 -0
- data/lib/openapi_client/models/user_metadata_field.rb +323 -0
- data/lib/openapi_client/models/user_metadata_field_type.rb +44 -0
- data/lib/openapi_client/models/user_response.rb +221 -0
- data/lib/openapi_client/models/user_status.rb +41 -0
- data/lib/openapi_client/models/web_authn_devices.rb +378 -0
- data/lib/openapi_client/models/web_authn_icons.rb +230 -0
- data/lib/openapi_client/models/web_authn_type.rb +41 -0
- data/lib/openapi_client/version.rb +15 -0
- data/lib/openapi_client.rb +74 -0
- data/lib/passageidentity/auth.rb +32 -5
- data/lib/passageidentity/client.rb +17 -121
- data/lib/passageidentity/user_api.rb +29 -131
- data/lib/passageidentity/version.rb +5 -0
- data/openapitools.json +7 -0
- data/passageidentity.gemspec +3 -1
- data/tests/auth_test.rb +6 -1
- data/tests/magic_link_test.rb +5 -4
- data/tests/user_api_test.rb +2 -2
- metadata +96 -2
@@ -0,0 +1,419 @@
|
|
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
|
@@ -0,0 +1,94 @@
|
|
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
|
+
|
@@ -0,0 +1,18 @@
|
|
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
|
+
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# OpenapiClient::AppsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.passage.id/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**get_app**](AppsApi.md#get_app) | **GET** /apps/{app_id} | Get App |
|
8
|
+
|
9
|
+
|
10
|
+
## get_app
|
11
|
+
|
12
|
+
> <AppResponse> get_app(app_id)
|
13
|
+
|
14
|
+
Get App
|
15
|
+
|
16
|
+
Get app information.
|
17
|
+
|
18
|
+
### Examples
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'time'
|
22
|
+
require 'openapi_client'
|
23
|
+
# setup authorization
|
24
|
+
OpenapiClient.configure do |config|
|
25
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
26
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = OpenapiClient::AppsApi.new
|
30
|
+
app_id = 'app_id_example' # String | App ID
|
31
|
+
|
32
|
+
begin
|
33
|
+
# Get App
|
34
|
+
result = api_instance.get_app(app_id)
|
35
|
+
p result
|
36
|
+
rescue OpenapiClient::ApiError => e
|
37
|
+
puts "Error when calling AppsApi->get_app: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
#### Using the get_app_with_http_info variant
|
42
|
+
|
43
|
+
This returns an Array which contains the response data, status code and headers.
|
44
|
+
|
45
|
+
> <Array(<AppResponse>, Integer, Hash)> get_app_with_http_info(app_id)
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
begin
|
49
|
+
# Get App
|
50
|
+
data, status_code, headers = api_instance.get_app_with_http_info(app_id)
|
51
|
+
p status_code # => 2xx
|
52
|
+
p headers # => { ... }
|
53
|
+
p data # => <AppResponse>
|
54
|
+
rescue OpenapiClient::ApiError => e
|
55
|
+
puts "Error when calling AppsApi->get_app_with_http_info: #{e}"
|
56
|
+
end
|
57
|
+
```
|
58
|
+
|
59
|
+
### Parameters
|
60
|
+
|
61
|
+
| Name | Type | Description | Notes |
|
62
|
+
| ---- | ---- | ----------- | ----- |
|
63
|
+
| **app_id** | **String** | App ID | |
|
64
|
+
|
65
|
+
### Return type
|
66
|
+
|
67
|
+
[**AppResponse**](AppResponse.md)
|
68
|
+
|
69
|
+
### Authorization
|
70
|
+
|
71
|
+
[bearerAuth](../README.md#bearerAuth)
|
72
|
+
|
73
|
+
### HTTP request headers
|
74
|
+
|
75
|
+
- **Content-Type**: Not defined
|
76
|
+
- **Accept**: application/json
|
77
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# OpenapiClient::AuthMethods
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **passkeys** | [**PasskeysAuthMethod**](PasskeysAuthMethod.md) | | |
|
8
|
+
| **otp** | [**OtpAuthMethod**](OtpAuthMethod.md) | | |
|
9
|
+
| **magic_link** | [**MagicLinkAuthMethod**](MagicLinkAuthMethod.md) | | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'openapi_client'
|
15
|
+
|
16
|
+
instance = OpenapiClient::AuthMethods.new(
|
17
|
+
passkeys: null,
|
18
|
+
otp: null,
|
19
|
+
magic_link: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# OpenapiClient::CreateMagicLinkRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **channel** | [**MagicLinkChannel**](MagicLinkChannel.md) | | |
|
8
|
+
| **email** | **String** | | |
|
9
|
+
| **language** | **String** | language of the email to send (optional) | [optional] |
|
10
|
+
| **magic_link_path** | **String** | | |
|
11
|
+
| **phone** | **String** | | |
|
12
|
+
| **redirect_url** | **String** | | |
|
13
|
+
| **_send** | **Boolean** | | |
|
14
|
+
| **ttl** | **Integer** | | |
|
15
|
+
| **type** | [**MagicLinkType**](MagicLinkType.md) | | [optional] |
|
16
|
+
| **user_id** | **String** | | |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'openapi_client'
|
22
|
+
|
23
|
+
instance = OpenapiClient::CreateMagicLinkRequest.new(
|
24
|
+
channel: null,
|
25
|
+
email: null,
|
26
|
+
language: null,
|
27
|
+
magic_link_path: null,
|
28
|
+
phone: null,
|
29
|
+
redirect_url: null,
|
30
|
+
_send: null,
|
31
|
+
ttl: null,
|
32
|
+
type: null,
|
33
|
+
user_id: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# OpenapiClient::CreateUserRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **email** | **String** | Email of the new user. Either this or `phone` is required; both may be provided. | [optional] |
|
8
|
+
| **phone** | **String** | Phone number of the new user. Either this or `email` is required; both may be provided. | [optional] |
|
9
|
+
| **user_metadata** | **Object** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'openapi_client'
|
15
|
+
|
16
|
+
instance = OpenapiClient::CreateUserRequest.new(
|
17
|
+
email: null,
|
18
|
+
phone: null,
|
19
|
+
user_metadata: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|