authentik-api 2026.5.6 → 2026.8.0.rc1
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/README_API.md +104 -8
- data/lib/authentik/api/api/admin_api.rb +3 -0
- data/lib/authentik/api/api/core_api.rb +651 -27
- data/lib/authentik/api/api/endpoints_api.rb +7 -7
- data/lib/authentik/api/api/events_api.rb +35 -2
- data/lib/authentik/api/api/lifecycle_api.rb +258 -0
- data/lib/authentik/api/api/providers_api.rb +401 -0
- data/lib/authentik/api/api/requests_api.rb +1858 -0
- data/lib/authentik/api/api/sources_api.rb +6 -3
- data/lib/authentik/api/configuration.rb +14 -0
- data/lib/authentik/api/inflector.rb +2 -1
- data/lib/authentik/api/models/app_enum.rb +3 -1
- data/lib/authentik/api/models/application.rb +27 -1
- data/lib/authentik/api/models/authenticator_web_authn_stage.rb +1 -11
- data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +1 -11
- data/lib/authentik/api/models/brand.rb +21 -1
- data/lib/authentik/api/models/brand_request.rb +21 -1
- data/lib/authentik/api/models/captcha_stage.rb +32 -1
- data/lib/authentik/api/models/captcha_stage_request.rb +32 -1
- data/lib/authentik/api/models/compatibility_mode_enum.rb +2 -1
- data/lib/authentik/api/models/content_type.rb +30 -4
- data/lib/authentik/api/models/current_brand.rb +19 -1
- data/lib/authentik/api/models/current_brand_flags.rb +1 -55
- data/lib/authentik/api/models/device_user_binding.rb +39 -1
- data/lib/authentik/api/models/event_actions.rb +6 -1
- data/lib/authentik/api/models/grant_request.rb +382 -0
- data/lib/authentik/api/models/{reviewer_group.rb → grant_request_create_request.rb} +29 -42
- data/lib/authentik/api/models/{grant_types_enum.rb → grant_type_enum.rb} +5 -4
- data/lib/authentik/api/models/last_task_status_enum.rb +2 -1
- data/lib/authentik/api/models/ldap_outpost_config.rb +1 -1
- data/lib/authentik/api/models/ldap_source.rb +14 -4
- data/lib/authentik/api/models/ldap_source_request.rb +14 -4
- data/lib/authentik/api/models/lifecycle_rule.rb +2 -2
- data/lib/authentik/api/models/model_enum.rb +8 -1
- data/lib/authentik/api/models/notification_mode_enum.rb +35 -0
- data/lib/authentik/api/models/o_auth2_dynamic_client_registration.rb +291 -0
- data/lib/authentik/api/models/o_auth2_dynamic_client_registration_request.rb +303 -0
- data/lib/authentik/api/models/o_auth2_provider.rb +1 -1
- data/lib/authentik/api/models/o_auth2_provider_request.rb +1 -1
- data/lib/authentik/api/models/o_auth_source.rb +0 -60
- data/lib/authentik/api/models/o_auth_source_request.rb +0 -60
- data/lib/authentik/api/models/object_attribute.rb +420 -0
- data/lib/authentik/api/models/object_attribute_request.rb +358 -0
- data/lib/authentik/api/models/object_attribute_type_enum.rb +35 -0
- data/lib/authentik/api/models/offboarding_action_enum.rb +34 -0
- data/lib/authentik/api/models/offboarding_status_enum.rb +36 -0
- data/lib/authentik/api/models/paginated_grant_request_list.rb +214 -0
- data/lib/authentik/api/models/paginated_o_auth2_dynamic_client_registration_list.rb +214 -0
- data/lib/authentik/api/models/paginated_object_attribute_list.rb +214 -0
- data/lib/authentik/api/models/paginated_request_rule_binding_list.rb +214 -0
- data/lib/authentik/api/models/paginated_request_rule_child_binding_list.rb +214 -0
- data/lib/authentik/api/models/paginated_request_rule_list.rb +214 -0
- data/lib/authentik/api/models/paginated_requestable_target_list.rb +214 -0
- data/lib/authentik/api/models/paginated_user_offboarding_list.rb +214 -0
- data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +1 -11
- data/lib/authentik/api/models/patched_brand_request.rb +21 -1
- data/lib/authentik/api/models/patched_captcha_stage_request.rb +32 -1
- data/lib/authentik/api/models/patched_grant_request_fulfill_request.rb +175 -0
- data/lib/authentik/api/models/patched_ldap_source_request.rb +14 -4
- data/lib/authentik/api/models/patched_o_auth2_dynamic_client_registration_request.rb +286 -0
- data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +1 -1
- data/lib/authentik/api/models/patched_o_auth_source_request.rb +0 -60
- data/lib/authentik/api/models/patched_object_attribute_request.rb +320 -0
- data/lib/authentik/api/models/patched_request_rule_binding_request.rb +249 -0
- data/lib/authentik/api/models/patched_request_rule_child_binding_request.rb +159 -0
- data/lib/authentik/api/models/patched_request_rule_request.rb +277 -0
- data/lib/authentik/api/models/patched_saml_source_request.rb +8 -8
- data/lib/authentik/api/models/patched_settings_request.rb +30 -1
- data/lib/authentik/api/models/patched_settings_request_flags.rb +1 -1
- data/lib/authentik/api/models/patched_ws_federation_provider_request.rb +11 -1
- data/lib/authentik/api/models/policy_binding.rb +42 -4
- data/lib/authentik/api/models/provider_type_enum.rb +2 -3
- data/lib/authentik/api/models/related_rule.rb +2 -2
- data/lib/authentik/api/models/related_target.rb +266 -0
- data/lib/authentik/api/models/request_content_type_enum.rb +34 -0
- data/lib/authentik/api/models/request_rule.rb +329 -0
- data/lib/authentik/api/models/request_rule_binding.rb +353 -0
- data/lib/authentik/api/models/request_rule_binding_request.rb +283 -0
- data/lib/authentik/api/models/{reviewer_user.rb → request_rule_child_binding.rb} +34 -99
- data/lib/authentik/api/models/request_rule_child_binding_request.rb +193 -0
- data/lib/authentik/api/models/request_rule_request.rb +284 -0
- data/lib/authentik/api/models/request_status.rb +36 -0
- data/lib/authentik/api/models/requestable_target.rb +278 -0
- data/lib/authentik/api/models/review.rb +1 -1
- data/lib/authentik/api/models/saml_source.rb +35 -8
- data/lib/authentik/api/models/saml_source_request.rb +8 -8
- data/lib/authentik/api/models/saml_version_enum.rb +34 -0
- data/lib/authentik/api/models/session_user.rb +32 -4
- data/lib/authentik/api/models/settings.rb +30 -1
- data/lib/authentik/api/models/settings_request.rb +30 -1
- data/lib/authentik/api/models/system_info.rb +31 -4
- data/lib/authentik/api/models/task_aggregated_status_enum.rb +2 -1
- data/lib/authentik/api/models/task_status_enum.rb +2 -1
- data/lib/authentik/api/models/user_offboarding.rb +379 -0
- data/lib/authentik/api/models/user_offboarding_request.rb +237 -0
- data/lib/authentik/api/models/user_self.rb +28 -1
- data/lib/authentik/api/models/user_switch_action_enum.rb +34 -0
- data/lib/authentik/api/models/user_switch_request.rb +173 -0
- data/lib/authentik/api/models/user_switch_response.rb +159 -0
- data/lib/authentik/api/models/ws_federation_provider.rb +41 -4
- data/lib/authentik/api/models/ws_federation_provider_request.rb +11 -1
- data/lib/authentik/api/version.rb +1 -1
- data/spec/api/admin_api_spec.rb +1 -0
- data/spec/api/core_api_spec.rb +119 -0
- data/spec/api/events_api_spec.rb +11 -0
- data/spec/api/lifecycle_api_spec.rb +47 -0
- data/spec/api/providers_api_spec.rb +73 -0
- data/spec/api/requests_api_spec.rb +365 -0
- data/spec/api/sources_api_spec.rb +2 -1
- data/spec/models/application_spec.rb +6 -0
- data/spec/models/authenticator_web_authn_stage_request_spec.rb +0 -6
- data/spec/models/authenticator_web_authn_stage_spec.rb +0 -6
- data/spec/models/brand_request_spec.rb +12 -0
- data/spec/models/brand_spec.rb +12 -0
- data/spec/models/captcha_stage_request_spec.rb +6 -0
- data/spec/models/captcha_stage_spec.rb +6 -0
- data/spec/models/content_type_spec.rb +6 -0
- data/spec/models/current_brand_flags_spec.rb +0 -12
- data/spec/models/current_brand_spec.rb +12 -0
- data/spec/models/device_user_binding_spec.rb +12 -0
- data/spec/models/grant_request_create_request_spec.rb +36 -0
- data/spec/models/grant_request_spec.rb +90 -0
- data/spec/models/{grant_types_enum_spec.rb → grant_type_enum_spec.rb} +6 -6
- data/spec/models/ldap_source_request_spec.rb +6 -0
- data/spec/models/ldap_source_spec.rb +6 -0
- data/spec/models/notification_mode_enum_spec.rb +24 -0
- data/spec/models/o_auth2_dynamic_client_registration_request_spec.rb +78 -0
- data/spec/models/o_auth2_dynamic_client_registration_spec.rb +84 -0
- data/spec/models/object_attribute_request_spec.rb +84 -0
- data/spec/models/object_attribute_spec.rb +108 -0
- data/spec/models/object_attribute_type_enum_spec.rb +24 -0
- data/spec/models/offboarding_action_enum_spec.rb +24 -0
- data/spec/models/offboarding_status_enum_spec.rb +24 -0
- data/spec/models/paginated_grant_request_list_spec.rb +42 -0
- data/spec/models/paginated_o_auth2_dynamic_client_registration_list_spec.rb +42 -0
- data/spec/models/paginated_object_attribute_list_spec.rb +42 -0
- data/spec/models/paginated_request_rule_binding_list_spec.rb +42 -0
- data/spec/models/paginated_request_rule_child_binding_list_spec.rb +42 -0
- data/spec/models/paginated_request_rule_list_spec.rb +42 -0
- data/spec/models/paginated_requestable_target_list_spec.rb +42 -0
- data/spec/models/paginated_user_offboarding_list_spec.rb +42 -0
- data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +0 -6
- data/spec/models/patched_brand_request_spec.rb +12 -0
- data/spec/models/patched_captcha_stage_request_spec.rb +6 -0
- data/spec/models/patched_grant_request_fulfill_request_spec.rb +36 -0
- data/spec/models/patched_ldap_source_request_spec.rb +6 -0
- data/spec/models/patched_o_auth2_dynamic_client_registration_request_spec.rb +78 -0
- data/spec/models/patched_object_attribute_request_spec.rb +84 -0
- data/spec/models/patched_request_rule_binding_request_spec.rb +60 -0
- data/spec/models/patched_request_rule_child_binding_request_spec.rb +42 -0
- data/spec/models/patched_request_rule_request_spec.rb +72 -0
- data/spec/models/patched_saml_source_request_spec.rb +1 -1
- data/spec/models/patched_settings_request_spec.rb +6 -0
- data/spec/models/patched_ws_federation_provider_request_spec.rb +6 -0
- data/spec/models/policy_binding_spec.rb +12 -0
- data/spec/models/related_target_spec.rb +54 -0
- data/spec/models/request_content_type_enum_spec.rb +24 -0
- data/spec/models/request_rule_binding_request_spec.rb +60 -0
- data/spec/models/request_rule_binding_spec.rb +84 -0
- data/spec/models/request_rule_child_binding_request_spec.rb +42 -0
- data/spec/models/{reviewer_user_spec.rb → request_rule_child_binding_spec.rb} +8 -14
- data/spec/models/request_rule_request_spec.rb +72 -0
- data/spec/models/request_rule_spec.rb +84 -0
- data/spec/models/request_status_spec.rb +24 -0
- data/spec/models/requestable_target_spec.rb +60 -0
- data/spec/models/saml_source_request_spec.rb +1 -1
- data/spec/models/saml_source_spec.rb +7 -1
- data/spec/models/saml_version_enum_spec.rb +24 -0
- data/spec/models/session_user_spec.rb +6 -0
- data/spec/models/settings_request_spec.rb +6 -0
- data/spec/models/settings_spec.rb +6 -0
- data/spec/models/system_info_spec.rb +6 -0
- data/spec/models/user_offboarding_request_spec.rb +54 -0
- data/spec/models/user_offboarding_spec.rb +90 -0
- data/spec/models/user_self_spec.rb +6 -0
- data/spec/models/user_switch_action_enum_spec.rb +24 -0
- data/spec/models/{reviewer_group_spec.rb → user_switch_request_spec.rb} +8 -8
- data/spec/models/user_switch_response_spec.rb +30 -0
- data/spec/models/ws_federation_provider_request_spec.rb +6 -0
- data/spec/models/ws_federation_provider_spec.rb +12 -0
- metadata +127 -10
|
@@ -3372,6 +3372,404 @@ module Authentik::Api
|
|
|
3372
3372
|
return data, status_code, headers
|
|
3373
3373
|
end
|
|
3374
3374
|
|
|
3375
|
+
# OAuth2 Dynamic Client Registration configuration ViewSet
|
|
3376
|
+
# @param o_auth2_dynamic_client_registration_request [OAuth2DynamicClientRegistrationRequest]
|
|
3377
|
+
# @param [Hash] opts the optional parameters
|
|
3378
|
+
# @return [OAuth2DynamicClientRegistration]
|
|
3379
|
+
def providers_oauth2_dcr_create(o_auth2_dynamic_client_registration_request, opts = {})
|
|
3380
|
+
data, _status_code, _headers = providers_oauth2_dcr_create_with_http_info(o_auth2_dynamic_client_registration_request, opts)
|
|
3381
|
+
data
|
|
3382
|
+
end
|
|
3383
|
+
|
|
3384
|
+
# OAuth2 Dynamic Client Registration configuration ViewSet
|
|
3385
|
+
# @param o_auth2_dynamic_client_registration_request [OAuth2DynamicClientRegistrationRequest]
|
|
3386
|
+
# @param [Hash] opts the optional parameters
|
|
3387
|
+
# @return [Array<(OAuth2DynamicClientRegistration, Integer, Hash)>] OAuth2DynamicClientRegistration data, response status code and response headers
|
|
3388
|
+
def providers_oauth2_dcr_create_with_http_info(o_auth2_dynamic_client_registration_request, opts = {})
|
|
3389
|
+
if @api_client.config.debugging
|
|
3390
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_oauth2_dcr_create ...'
|
|
3391
|
+
end
|
|
3392
|
+
# verify the required parameter 'o_auth2_dynamic_client_registration_request' is set
|
|
3393
|
+
if @api_client.config.client_side_validation && o_auth2_dynamic_client_registration_request.nil?
|
|
3394
|
+
fail ArgumentError, "Missing the required parameter 'o_auth2_dynamic_client_registration_request' when calling ProvidersApi.providers_oauth2_dcr_create"
|
|
3395
|
+
end
|
|
3396
|
+
# resource path
|
|
3397
|
+
local_var_path = '/providers/oauth2-dcr/'
|
|
3398
|
+
|
|
3399
|
+
# query parameters
|
|
3400
|
+
query_params = opts[:query_params] || {}
|
|
3401
|
+
|
|
3402
|
+
# header parameters
|
|
3403
|
+
header_params = opts[:header_params] || {}
|
|
3404
|
+
# HTTP header 'Accept' (if needed)
|
|
3405
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3406
|
+
# HTTP header 'Content-Type'
|
|
3407
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
3408
|
+
if !content_type.nil?
|
|
3409
|
+
header_params['Content-Type'] = content_type
|
|
3410
|
+
end
|
|
3411
|
+
|
|
3412
|
+
# form parameters
|
|
3413
|
+
form_params = opts[:form_params] || {}
|
|
3414
|
+
|
|
3415
|
+
# http body (model)
|
|
3416
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(o_auth2_dynamic_client_registration_request)
|
|
3417
|
+
|
|
3418
|
+
# return_type
|
|
3419
|
+
return_type = opts[:debug_return_type] || 'OAuth2DynamicClientRegistration'
|
|
3420
|
+
|
|
3421
|
+
# auth_names
|
|
3422
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
3423
|
+
|
|
3424
|
+
new_options = opts.merge(
|
|
3425
|
+
:operation => :"ProvidersApi.providers_oauth2_dcr_create",
|
|
3426
|
+
:header_params => header_params,
|
|
3427
|
+
:query_params => query_params,
|
|
3428
|
+
:form_params => form_params,
|
|
3429
|
+
:body => post_body,
|
|
3430
|
+
:auth_names => auth_names,
|
|
3431
|
+
:return_type => return_type
|
|
3432
|
+
)
|
|
3433
|
+
|
|
3434
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3435
|
+
if @api_client.config.debugging
|
|
3436
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_oauth2_dcr_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3437
|
+
end
|
|
3438
|
+
return data, status_code, headers
|
|
3439
|
+
end
|
|
3440
|
+
|
|
3441
|
+
# OAuth2 Dynamic Client Registration configuration ViewSet
|
|
3442
|
+
# @param pbm_uuid [String] A UUID string identifying this OAuth2 Dynamic Client Registration.
|
|
3443
|
+
# @param [Hash] opts the optional parameters
|
|
3444
|
+
# @return [nil]
|
|
3445
|
+
def providers_oauth2_dcr_destroy(pbm_uuid, opts = {})
|
|
3446
|
+
providers_oauth2_dcr_destroy_with_http_info(pbm_uuid, opts)
|
|
3447
|
+
nil
|
|
3448
|
+
end
|
|
3449
|
+
|
|
3450
|
+
# OAuth2 Dynamic Client Registration configuration ViewSet
|
|
3451
|
+
# @param pbm_uuid [String] A UUID string identifying this OAuth2 Dynamic Client Registration.
|
|
3452
|
+
# @param [Hash] opts the optional parameters
|
|
3453
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3454
|
+
def providers_oauth2_dcr_destroy_with_http_info(pbm_uuid, opts = {})
|
|
3455
|
+
if @api_client.config.debugging
|
|
3456
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_oauth2_dcr_destroy ...'
|
|
3457
|
+
end
|
|
3458
|
+
# verify the required parameter 'pbm_uuid' is set
|
|
3459
|
+
if @api_client.config.client_side_validation && pbm_uuid.nil?
|
|
3460
|
+
fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling ProvidersApi.providers_oauth2_dcr_destroy"
|
|
3461
|
+
end
|
|
3462
|
+
# resource path
|
|
3463
|
+
local_var_path = '/providers/oauth2-dcr/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
|
|
3464
|
+
|
|
3465
|
+
# query parameters
|
|
3466
|
+
query_params = opts[:query_params] || {}
|
|
3467
|
+
|
|
3468
|
+
# header parameters
|
|
3469
|
+
header_params = opts[:header_params] || {}
|
|
3470
|
+
# HTTP header 'Accept' (if needed)
|
|
3471
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3472
|
+
|
|
3473
|
+
# form parameters
|
|
3474
|
+
form_params = opts[:form_params] || {}
|
|
3475
|
+
|
|
3476
|
+
# http body (model)
|
|
3477
|
+
post_body = opts[:debug_body]
|
|
3478
|
+
|
|
3479
|
+
# return_type
|
|
3480
|
+
return_type = opts[:debug_return_type]
|
|
3481
|
+
|
|
3482
|
+
# auth_names
|
|
3483
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
3484
|
+
|
|
3485
|
+
new_options = opts.merge(
|
|
3486
|
+
:operation => :"ProvidersApi.providers_oauth2_dcr_destroy",
|
|
3487
|
+
:header_params => header_params,
|
|
3488
|
+
:query_params => query_params,
|
|
3489
|
+
:form_params => form_params,
|
|
3490
|
+
:body => post_body,
|
|
3491
|
+
:auth_names => auth_names,
|
|
3492
|
+
:return_type => return_type
|
|
3493
|
+
)
|
|
3494
|
+
|
|
3495
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
3496
|
+
if @api_client.config.debugging
|
|
3497
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_oauth2_dcr_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3498
|
+
end
|
|
3499
|
+
return data, status_code, headers
|
|
3500
|
+
end
|
|
3501
|
+
|
|
3502
|
+
# OAuth2 Dynamic Client Registration configuration ViewSet
|
|
3503
|
+
# @param [Hash] opts the optional parameters
|
|
3504
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
3505
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
3506
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
3507
|
+
# @option opts [Integer] :provider
|
|
3508
|
+
# @option opts [String] :search A search term.
|
|
3509
|
+
# @return [PaginatedOAuth2DynamicClientRegistrationList]
|
|
3510
|
+
def providers_oauth2_dcr_list(opts = {})
|
|
3511
|
+
data, _status_code, _headers = providers_oauth2_dcr_list_with_http_info(opts)
|
|
3512
|
+
data
|
|
3513
|
+
end
|
|
3514
|
+
|
|
3515
|
+
# OAuth2 Dynamic Client Registration configuration ViewSet
|
|
3516
|
+
# @param [Hash] opts the optional parameters
|
|
3517
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
3518
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
3519
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
3520
|
+
# @option opts [Integer] :provider
|
|
3521
|
+
# @option opts [String] :search A search term.
|
|
3522
|
+
# @return [Array<(PaginatedOAuth2DynamicClientRegistrationList, Integer, Hash)>] PaginatedOAuth2DynamicClientRegistrationList data, response status code and response headers
|
|
3523
|
+
def providers_oauth2_dcr_list_with_http_info(opts = {})
|
|
3524
|
+
if @api_client.config.debugging
|
|
3525
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_oauth2_dcr_list ...'
|
|
3526
|
+
end
|
|
3527
|
+
# resource path
|
|
3528
|
+
local_var_path = '/providers/oauth2-dcr/'
|
|
3529
|
+
|
|
3530
|
+
# query parameters
|
|
3531
|
+
query_params = opts[:query_params] || {}
|
|
3532
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
3533
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
3534
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
3535
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
3536
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
3537
|
+
|
|
3538
|
+
# header parameters
|
|
3539
|
+
header_params = opts[:header_params] || {}
|
|
3540
|
+
# HTTP header 'Accept' (if needed)
|
|
3541
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3542
|
+
|
|
3543
|
+
# form parameters
|
|
3544
|
+
form_params = opts[:form_params] || {}
|
|
3545
|
+
|
|
3546
|
+
# http body (model)
|
|
3547
|
+
post_body = opts[:debug_body]
|
|
3548
|
+
|
|
3549
|
+
# return_type
|
|
3550
|
+
return_type = opts[:debug_return_type] || 'PaginatedOAuth2DynamicClientRegistrationList'
|
|
3551
|
+
|
|
3552
|
+
# auth_names
|
|
3553
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
3554
|
+
|
|
3555
|
+
new_options = opts.merge(
|
|
3556
|
+
:operation => :"ProvidersApi.providers_oauth2_dcr_list",
|
|
3557
|
+
:header_params => header_params,
|
|
3558
|
+
:query_params => query_params,
|
|
3559
|
+
:form_params => form_params,
|
|
3560
|
+
:body => post_body,
|
|
3561
|
+
:auth_names => auth_names,
|
|
3562
|
+
:return_type => return_type
|
|
3563
|
+
)
|
|
3564
|
+
|
|
3565
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3566
|
+
if @api_client.config.debugging
|
|
3567
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_oauth2_dcr_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3568
|
+
end
|
|
3569
|
+
return data, status_code, headers
|
|
3570
|
+
end
|
|
3571
|
+
|
|
3572
|
+
# OAuth2 Dynamic Client Registration configuration ViewSet
|
|
3573
|
+
# @param pbm_uuid [String] A UUID string identifying this OAuth2 Dynamic Client Registration.
|
|
3574
|
+
# @param [Hash] opts the optional parameters
|
|
3575
|
+
# @option opts [PatchedOAuth2DynamicClientRegistrationRequest] :patched_o_auth2_dynamic_client_registration_request
|
|
3576
|
+
# @return [OAuth2DynamicClientRegistration]
|
|
3577
|
+
def providers_oauth2_dcr_partial_update(pbm_uuid, opts = {})
|
|
3578
|
+
data, _status_code, _headers = providers_oauth2_dcr_partial_update_with_http_info(pbm_uuid, opts)
|
|
3579
|
+
data
|
|
3580
|
+
end
|
|
3581
|
+
|
|
3582
|
+
# OAuth2 Dynamic Client Registration configuration ViewSet
|
|
3583
|
+
# @param pbm_uuid [String] A UUID string identifying this OAuth2 Dynamic Client Registration.
|
|
3584
|
+
# @param [Hash] opts the optional parameters
|
|
3585
|
+
# @option opts [PatchedOAuth2DynamicClientRegistrationRequest] :patched_o_auth2_dynamic_client_registration_request
|
|
3586
|
+
# @return [Array<(OAuth2DynamicClientRegistration, Integer, Hash)>] OAuth2DynamicClientRegistration data, response status code and response headers
|
|
3587
|
+
def providers_oauth2_dcr_partial_update_with_http_info(pbm_uuid, opts = {})
|
|
3588
|
+
if @api_client.config.debugging
|
|
3589
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_oauth2_dcr_partial_update ...'
|
|
3590
|
+
end
|
|
3591
|
+
# verify the required parameter 'pbm_uuid' is set
|
|
3592
|
+
if @api_client.config.client_side_validation && pbm_uuid.nil?
|
|
3593
|
+
fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling ProvidersApi.providers_oauth2_dcr_partial_update"
|
|
3594
|
+
end
|
|
3595
|
+
# resource path
|
|
3596
|
+
local_var_path = '/providers/oauth2-dcr/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
|
|
3597
|
+
|
|
3598
|
+
# query parameters
|
|
3599
|
+
query_params = opts[:query_params] || {}
|
|
3600
|
+
|
|
3601
|
+
# header parameters
|
|
3602
|
+
header_params = opts[:header_params] || {}
|
|
3603
|
+
# HTTP header 'Accept' (if needed)
|
|
3604
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3605
|
+
# HTTP header 'Content-Type'
|
|
3606
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
3607
|
+
if !content_type.nil?
|
|
3608
|
+
header_params['Content-Type'] = content_type
|
|
3609
|
+
end
|
|
3610
|
+
|
|
3611
|
+
# form parameters
|
|
3612
|
+
form_params = opts[:form_params] || {}
|
|
3613
|
+
|
|
3614
|
+
# http body (model)
|
|
3615
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_o_auth2_dynamic_client_registration_request'])
|
|
3616
|
+
|
|
3617
|
+
# return_type
|
|
3618
|
+
return_type = opts[:debug_return_type] || 'OAuth2DynamicClientRegistration'
|
|
3619
|
+
|
|
3620
|
+
# auth_names
|
|
3621
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
3622
|
+
|
|
3623
|
+
new_options = opts.merge(
|
|
3624
|
+
:operation => :"ProvidersApi.providers_oauth2_dcr_partial_update",
|
|
3625
|
+
:header_params => header_params,
|
|
3626
|
+
:query_params => query_params,
|
|
3627
|
+
:form_params => form_params,
|
|
3628
|
+
:body => post_body,
|
|
3629
|
+
:auth_names => auth_names,
|
|
3630
|
+
:return_type => return_type
|
|
3631
|
+
)
|
|
3632
|
+
|
|
3633
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
3634
|
+
if @api_client.config.debugging
|
|
3635
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_oauth2_dcr_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3636
|
+
end
|
|
3637
|
+
return data, status_code, headers
|
|
3638
|
+
end
|
|
3639
|
+
|
|
3640
|
+
# OAuth2 Dynamic Client Registration configuration ViewSet
|
|
3641
|
+
# @param pbm_uuid [String] A UUID string identifying this OAuth2 Dynamic Client Registration.
|
|
3642
|
+
# @param [Hash] opts the optional parameters
|
|
3643
|
+
# @return [OAuth2DynamicClientRegistration]
|
|
3644
|
+
def providers_oauth2_dcr_retrieve(pbm_uuid, opts = {})
|
|
3645
|
+
data, _status_code, _headers = providers_oauth2_dcr_retrieve_with_http_info(pbm_uuid, opts)
|
|
3646
|
+
data
|
|
3647
|
+
end
|
|
3648
|
+
|
|
3649
|
+
# OAuth2 Dynamic Client Registration configuration ViewSet
|
|
3650
|
+
# @param pbm_uuid [String] A UUID string identifying this OAuth2 Dynamic Client Registration.
|
|
3651
|
+
# @param [Hash] opts the optional parameters
|
|
3652
|
+
# @return [Array<(OAuth2DynamicClientRegistration, Integer, Hash)>] OAuth2DynamicClientRegistration data, response status code and response headers
|
|
3653
|
+
def providers_oauth2_dcr_retrieve_with_http_info(pbm_uuid, opts = {})
|
|
3654
|
+
if @api_client.config.debugging
|
|
3655
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_oauth2_dcr_retrieve ...'
|
|
3656
|
+
end
|
|
3657
|
+
# verify the required parameter 'pbm_uuid' is set
|
|
3658
|
+
if @api_client.config.client_side_validation && pbm_uuid.nil?
|
|
3659
|
+
fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling ProvidersApi.providers_oauth2_dcr_retrieve"
|
|
3660
|
+
end
|
|
3661
|
+
# resource path
|
|
3662
|
+
local_var_path = '/providers/oauth2-dcr/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
|
|
3663
|
+
|
|
3664
|
+
# query parameters
|
|
3665
|
+
query_params = opts[:query_params] || {}
|
|
3666
|
+
|
|
3667
|
+
# header parameters
|
|
3668
|
+
header_params = opts[:header_params] || {}
|
|
3669
|
+
# HTTP header 'Accept' (if needed)
|
|
3670
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3671
|
+
|
|
3672
|
+
# form parameters
|
|
3673
|
+
form_params = opts[:form_params] || {}
|
|
3674
|
+
|
|
3675
|
+
# http body (model)
|
|
3676
|
+
post_body = opts[:debug_body]
|
|
3677
|
+
|
|
3678
|
+
# return_type
|
|
3679
|
+
return_type = opts[:debug_return_type] || 'OAuth2DynamicClientRegistration'
|
|
3680
|
+
|
|
3681
|
+
# auth_names
|
|
3682
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
3683
|
+
|
|
3684
|
+
new_options = opts.merge(
|
|
3685
|
+
:operation => :"ProvidersApi.providers_oauth2_dcr_retrieve",
|
|
3686
|
+
:header_params => header_params,
|
|
3687
|
+
:query_params => query_params,
|
|
3688
|
+
:form_params => form_params,
|
|
3689
|
+
:body => post_body,
|
|
3690
|
+
:auth_names => auth_names,
|
|
3691
|
+
:return_type => return_type
|
|
3692
|
+
)
|
|
3693
|
+
|
|
3694
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3695
|
+
if @api_client.config.debugging
|
|
3696
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_oauth2_dcr_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3697
|
+
end
|
|
3698
|
+
return data, status_code, headers
|
|
3699
|
+
end
|
|
3700
|
+
|
|
3701
|
+
# OAuth2 Dynamic Client Registration configuration ViewSet
|
|
3702
|
+
# @param pbm_uuid [String] A UUID string identifying this OAuth2 Dynamic Client Registration.
|
|
3703
|
+
# @param o_auth2_dynamic_client_registration_request [OAuth2DynamicClientRegistrationRequest]
|
|
3704
|
+
# @param [Hash] opts the optional parameters
|
|
3705
|
+
# @return [OAuth2DynamicClientRegistration]
|
|
3706
|
+
def providers_oauth2_dcr_update(pbm_uuid, o_auth2_dynamic_client_registration_request, opts = {})
|
|
3707
|
+
data, _status_code, _headers = providers_oauth2_dcr_update_with_http_info(pbm_uuid, o_auth2_dynamic_client_registration_request, opts)
|
|
3708
|
+
data
|
|
3709
|
+
end
|
|
3710
|
+
|
|
3711
|
+
# OAuth2 Dynamic Client Registration configuration ViewSet
|
|
3712
|
+
# @param pbm_uuid [String] A UUID string identifying this OAuth2 Dynamic Client Registration.
|
|
3713
|
+
# @param o_auth2_dynamic_client_registration_request [OAuth2DynamicClientRegistrationRequest]
|
|
3714
|
+
# @param [Hash] opts the optional parameters
|
|
3715
|
+
# @return [Array<(OAuth2DynamicClientRegistration, Integer, Hash)>] OAuth2DynamicClientRegistration data, response status code and response headers
|
|
3716
|
+
def providers_oauth2_dcr_update_with_http_info(pbm_uuid, o_auth2_dynamic_client_registration_request, opts = {})
|
|
3717
|
+
if @api_client.config.debugging
|
|
3718
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_oauth2_dcr_update ...'
|
|
3719
|
+
end
|
|
3720
|
+
# verify the required parameter 'pbm_uuid' is set
|
|
3721
|
+
if @api_client.config.client_side_validation && pbm_uuid.nil?
|
|
3722
|
+
fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling ProvidersApi.providers_oauth2_dcr_update"
|
|
3723
|
+
end
|
|
3724
|
+
# verify the required parameter 'o_auth2_dynamic_client_registration_request' is set
|
|
3725
|
+
if @api_client.config.client_side_validation && o_auth2_dynamic_client_registration_request.nil?
|
|
3726
|
+
fail ArgumentError, "Missing the required parameter 'o_auth2_dynamic_client_registration_request' when calling ProvidersApi.providers_oauth2_dcr_update"
|
|
3727
|
+
end
|
|
3728
|
+
# resource path
|
|
3729
|
+
local_var_path = '/providers/oauth2-dcr/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
|
|
3730
|
+
|
|
3731
|
+
# query parameters
|
|
3732
|
+
query_params = opts[:query_params] || {}
|
|
3733
|
+
|
|
3734
|
+
# header parameters
|
|
3735
|
+
header_params = opts[:header_params] || {}
|
|
3736
|
+
# HTTP header 'Accept' (if needed)
|
|
3737
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3738
|
+
# HTTP header 'Content-Type'
|
|
3739
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
3740
|
+
if !content_type.nil?
|
|
3741
|
+
header_params['Content-Type'] = content_type
|
|
3742
|
+
end
|
|
3743
|
+
|
|
3744
|
+
# form parameters
|
|
3745
|
+
form_params = opts[:form_params] || {}
|
|
3746
|
+
|
|
3747
|
+
# http body (model)
|
|
3748
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(o_auth2_dynamic_client_registration_request)
|
|
3749
|
+
|
|
3750
|
+
# return_type
|
|
3751
|
+
return_type = opts[:debug_return_type] || 'OAuth2DynamicClientRegistration'
|
|
3752
|
+
|
|
3753
|
+
# auth_names
|
|
3754
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
3755
|
+
|
|
3756
|
+
new_options = opts.merge(
|
|
3757
|
+
:operation => :"ProvidersApi.providers_oauth2_dcr_update",
|
|
3758
|
+
:header_params => header_params,
|
|
3759
|
+
:query_params => query_params,
|
|
3760
|
+
:form_params => form_params,
|
|
3761
|
+
:body => post_body,
|
|
3762
|
+
:auth_names => auth_names,
|
|
3763
|
+
:return_type => return_type
|
|
3764
|
+
)
|
|
3765
|
+
|
|
3766
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3767
|
+
if @api_client.config.debugging
|
|
3768
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_oauth2_dcr_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3769
|
+
end
|
|
3770
|
+
return data, status_code, headers
|
|
3771
|
+
end
|
|
3772
|
+
|
|
3375
3773
|
# OAuth2Provider Viewset
|
|
3376
3774
|
# @param id [Integer] A unique integer value identifying this OAuth2/OpenID Provider.
|
|
3377
3775
|
# @param [Hash] opts the optional parameters
|
|
@@ -7990,6 +8388,7 @@ module Authentik::Api
|
|
|
7990
8388
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
7991
8389
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
7992
8390
|
# @option opts [Array<String>] :property_mappings
|
|
8391
|
+
# @option opts [SamlVersionEnum] :saml_version
|
|
7993
8392
|
# @option opts [String] :search A search term.
|
|
7994
8393
|
# @option opts [String] :session_valid_not_on_or_after
|
|
7995
8394
|
# @option opts [Boolean] :sign_assertion
|
|
@@ -8032,6 +8431,7 @@ module Authentik::Api
|
|
|
8032
8431
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
8033
8432
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
8034
8433
|
# @option opts [Array<String>] :property_mappings
|
|
8434
|
+
# @option opts [SamlVersionEnum] :saml_version
|
|
8035
8435
|
# @option opts [String] :search A search term.
|
|
8036
8436
|
# @option opts [String] :session_valid_not_on_or_after
|
|
8037
8437
|
# @option opts [Boolean] :sign_assertion
|
|
@@ -8076,6 +8476,7 @@ module Authentik::Api
|
|
|
8076
8476
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
8077
8477
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
8078
8478
|
query_params[:'property_mappings'] = @api_client.build_collection_param(opts[:'property_mappings'], :multi) if !opts[:'property_mappings'].nil?
|
|
8479
|
+
query_params[:'saml_version'] = opts[:'saml_version'] if !opts[:'saml_version'].nil?
|
|
8079
8480
|
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
8080
8481
|
query_params[:'session_valid_not_on_or_after'] = opts[:'session_valid_not_on_or_after'] if !opts[:'session_valid_not_on_or_after'].nil?
|
|
8081
8482
|
query_params[:'sign_assertion'] = opts[:'sign_assertion'] if !opts[:'sign_assertion'].nil?
|