authentik-api 2025.12.4 → 2026.2.1.1
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 +59 -7
- data/lib/authentik/api/api/core_api.rb +109 -12
- data/lib/authentik/api/api/crypto_api.rb +0 -3
- data/lib/authentik/api/api/endpoints_api.rb +459 -0
- data/lib/authentik/api/api/events_api.rb +3 -3
- data/lib/authentik/api/api/lifecycle_api.rb +681 -0
- data/lib/authentik/api/api/policies_api.rb +1 -1
- data/lib/authentik/api/api/providers_api.rb +705 -3
- data/lib/authentik/api/api/rbac_api.rb +6 -9
- data/lib/authentik/api/api/stages_api.rb +1 -1
- data/lib/authentik/api/models/alg_enum.rb +3 -1
- data/lib/authentik/api/models/app_enum.rb +4 -1
- data/lib/authentik/api/models/bulk_delete_session_response.rb +158 -0
- data/lib/authentik/api/models/certificate_key_pair.rb +5 -4
- data/lib/authentik/api/models/content_type_enum.rb +35 -0
- data/lib/authentik/api/models/contextual_flow_info_layout_enum.rb +3 -1
- data/lib/authentik/api/models/current_brand_flags.rb +27 -1
- data/lib/authentik/api/models/device_access_group.rb +15 -4
- data/lib/authentik/api/models/device_access_group_request.rb +15 -4
- data/lib/authentik/api/models/device_fact_snapshot.rb +53 -5
- data/lib/authentik/api/models/event_actions.rb +6 -1
- data/lib/authentik/api/models/fleet_connector.rb +349 -0
- data/lib/authentik/api/models/fleet_connector_request.rb +294 -0
- data/lib/authentik/api/models/flow_layout_enum.rb +3 -1
- data/lib/authentik/api/models/identification_challenge.rb +11 -1
- data/lib/authentik/api/models/lifecycle_iteration.rb +525 -0
- data/lib/authentik/api/models/lifecycle_iteration_request.rb +181 -0
- data/lib/authentik/api/models/lifecycle_iteration_state_enum.rb +36 -0
- data/lib/authentik/api/models/lifecycle_rule.rb +440 -0
- data/lib/authentik/api/models/lifecycle_rule_request.rb +394 -0
- data/lib/authentik/api/models/model_enum.rb +6 -1
- data/lib/authentik/api/models/model_request.rb +4 -2
- data/lib/authentik/api/models/operating_system.rb +3 -0
- data/lib/authentik/api/models/operating_system_request.rb +3 -0
- data/lib/authentik/api/models/paginated_fleet_connector_list.rb +214 -0
- data/lib/authentik/api/models/paginated_lifecycle_iteration_list.rb +214 -0
- data/lib/authentik/api/models/paginated_lifecycle_rule_list.rb +214 -0
- data/lib/authentik/api/models/paginated_ws_federation_provider_list.rb +214 -0
- data/lib/authentik/api/models/patched_device_access_group_request.rb +15 -4
- data/lib/authentik/api/models/patched_fleet_connector_request.rb +273 -0
- data/lib/authentik/api/models/patched_lifecycle_rule_request.rb +353 -0
- data/lib/authentik/api/models/patched_role_request.rb +0 -9
- data/lib/authentik/api/models/patched_saml_provider_request.rb +1 -1
- data/lib/authentik/api/models/patched_scim_provider_request.rb +13 -11
- data/lib/authentik/api/models/patched_settings_request_flags.rb +27 -1
- data/lib/authentik/api/models/patched_ws_federation_provider_request.rb +457 -0
- data/lib/authentik/api/models/provider_model_enum.rb +2 -1
- data/lib/authentik/api/models/review.rb +247 -0
- data/lib/authentik/api/models/review_request.rb +184 -0
- data/lib/authentik/api/models/reviewer_group.rb +184 -0
- data/lib/authentik/api/models/reviewer_user.rb +258 -0
- data/lib/authentik/api/models/role.rb +0 -9
- data/lib/authentik/api/models/role_request.rb +0 -9
- data/lib/authentik/api/models/{saml_provider_logout_method_enum.rb → saml_logout_methods.rb} +3 -3
- data/lib/authentik/api/models/saml_provider.rb +1 -1
- data/lib/authentik/api/models/saml_provider_request.rb +1 -1
- data/lib/authentik/api/models/scim_provider.rb +13 -11
- data/lib/authentik/api/models/scim_provider_request.rb +13 -11
- data/lib/authentik/api/models/task.rb +1 -1
- data/lib/authentik/api/models/{state_enum.rb → task_state_enum.rb} +3 -3
- data/lib/authentik/api/models/user_recovery_email_request.rb +187 -0
- data/lib/authentik/api/models/user_recovery_link_request.rb +161 -0
- data/lib/authentik/api/models/vendor_enum.rb +35 -0
- data/lib/authentik/api/models/ws_federation_provider.rb +668 -0
- data/lib/authentik/api/models/ws_federation_provider_request.rb +512 -0
- data/lib/authentik/api/version.rb +1 -1
- data/spec/api/core_api_spec.rb +21 -1
- data/spec/api/crypto_api_spec.rb +0 -1
- data/spec/api/endpoints_api_spec.rb +83 -0
- data/spec/api/lifecycle_api_spec.rb +144 -0
- data/spec/api/providers_api_spec.rb +137 -1
- data/spec/api/rbac_api_spec.rb +2 -3
- data/spec/models/bulk_delete_session_response_spec.rb +30 -0
- data/spec/models/content_type_enum_spec.rb +24 -0
- data/spec/models/current_brand_flags_spec.rb +6 -0
- data/spec/models/device_access_group_request_spec.rb +6 -0
- data/spec/models/device_access_group_spec.rb +6 -0
- data/spec/models/device_fact_snapshot_spec.rb +6 -0
- data/spec/models/fleet_connector_request_spec.rb +72 -0
- data/spec/models/fleet_connector_spec.rb +90 -0
- data/spec/models/identification_challenge_spec.rb +6 -0
- data/spec/models/lifecycle_iteration_request_spec.rb +30 -0
- data/spec/models/lifecycle_iteration_spec.rb +108 -0
- data/spec/models/lifecycle_iteration_state_enum_spec.rb +24 -0
- data/spec/models/lifecycle_rule_request_spec.rb +84 -0
- data/spec/models/lifecycle_rule_spec.rb +108 -0
- data/spec/models/paginated_fleet_connector_list_spec.rb +42 -0
- data/spec/models/paginated_lifecycle_iteration_list_spec.rb +42 -0
- data/spec/models/paginated_lifecycle_rule_list_spec.rb +42 -0
- data/spec/models/paginated_ws_federation_provider_list_spec.rb +42 -0
- data/spec/models/patched_device_access_group_request_spec.rb +6 -0
- data/spec/models/patched_fleet_connector_request_spec.rb +72 -0
- data/spec/models/patched_lifecycle_rule_request_spec.rb +84 -0
- data/spec/models/patched_scim_provider_request_spec.rb +3 -3
- data/spec/models/patched_settings_request_flags_spec.rb +6 -0
- data/spec/models/patched_ws_federation_provider_request_spec.rb +138 -0
- data/spec/models/review_request_spec.rb +36 -0
- data/spec/models/review_spec.rb +54 -0
- data/spec/models/reviewer_group_spec.rb +36 -0
- data/spec/models/reviewer_user_spec.rb +48 -0
- data/spec/models/saml_logout_methods_spec.rb +24 -0
- data/spec/models/scim_provider_request_spec.rb +3 -3
- data/spec/models/scim_provider_spec.rb +3 -3
- data/spec/models/task_state_enum_spec.rb +24 -0
- data/spec/models/user_recovery_email_request_spec.rb +36 -0
- data/spec/models/user_recovery_link_request_spec.rb +30 -0
- data/spec/models/{state_enum_spec.rb → vendor_enum_spec.rb} +6 -6
- data/spec/models/ws_federation_provider_request_spec.rb +138 -0
- data/spec/models/ws_federation_provider_spec.rb +204 -0
- metadata +85 -7
- data/spec/models/saml_provider_logout_method_enum_spec.rb +0 -24
|
@@ -6618,7 +6618,7 @@ module Authentik::Api
|
|
|
6618
6618
|
# SCIMProvider Viewset
|
|
6619
6619
|
# @param [Hash] opts the optional parameters
|
|
6620
6620
|
# @option opts [Boolean] :exclude_users_service_account
|
|
6621
|
-
# @option opts [String] :
|
|
6621
|
+
# @option opts [Array<String>] :group_filters
|
|
6622
6622
|
# @option opts [String] :name
|
|
6623
6623
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
6624
6624
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -6634,7 +6634,7 @@ module Authentik::Api
|
|
|
6634
6634
|
# SCIMProvider Viewset
|
|
6635
6635
|
# @param [Hash] opts the optional parameters
|
|
6636
6636
|
# @option opts [Boolean] :exclude_users_service_account
|
|
6637
|
-
# @option opts [String] :
|
|
6637
|
+
# @option opts [Array<String>] :group_filters
|
|
6638
6638
|
# @option opts [String] :name
|
|
6639
6639
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
6640
6640
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -6652,7 +6652,7 @@ module Authentik::Api
|
|
|
6652
6652
|
# query parameters
|
|
6653
6653
|
query_params = opts[:query_params] || {}
|
|
6654
6654
|
query_params[:'exclude_users_service_account'] = opts[:'exclude_users_service_account'] if !opts[:'exclude_users_service_account'].nil?
|
|
6655
|
-
query_params[:'
|
|
6655
|
+
query_params[:'group_filters'] = @api_client.build_collection_param(opts[:'group_filters'], :multi) if !opts[:'group_filters'].nil?
|
|
6656
6656
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
6657
6657
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
6658
6658
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
@@ -7875,5 +7875,707 @@ module Authentik::Api
|
|
|
7875
7875
|
end
|
|
7876
7876
|
return data, status_code, headers
|
|
7877
7877
|
end
|
|
7878
|
+
|
|
7879
|
+
# WSFederationProvider Viewset
|
|
7880
|
+
# @param ws_federation_provider_request [WSFederationProviderRequest]
|
|
7881
|
+
# @param [Hash] opts the optional parameters
|
|
7882
|
+
# @return [WSFederationProvider]
|
|
7883
|
+
def providers_wsfed_create(ws_federation_provider_request, opts = {})
|
|
7884
|
+
data, _status_code, _headers = providers_wsfed_create_with_http_info(ws_federation_provider_request, opts)
|
|
7885
|
+
data
|
|
7886
|
+
end
|
|
7887
|
+
|
|
7888
|
+
# WSFederationProvider Viewset
|
|
7889
|
+
# @param ws_federation_provider_request [WSFederationProviderRequest]
|
|
7890
|
+
# @param [Hash] opts the optional parameters
|
|
7891
|
+
# @return [Array<(WSFederationProvider, Integer, Hash)>] WSFederationProvider data, response status code and response headers
|
|
7892
|
+
def providers_wsfed_create_with_http_info(ws_federation_provider_request, opts = {})
|
|
7893
|
+
if @api_client.config.debugging
|
|
7894
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_wsfed_create ...'
|
|
7895
|
+
end
|
|
7896
|
+
# verify the required parameter 'ws_federation_provider_request' is set
|
|
7897
|
+
if @api_client.config.client_side_validation && ws_federation_provider_request.nil?
|
|
7898
|
+
fail ArgumentError, "Missing the required parameter 'ws_federation_provider_request' when calling ProvidersApi.providers_wsfed_create"
|
|
7899
|
+
end
|
|
7900
|
+
# resource path
|
|
7901
|
+
local_var_path = '/providers/wsfed/'
|
|
7902
|
+
|
|
7903
|
+
# query parameters
|
|
7904
|
+
query_params = opts[:query_params] || {}
|
|
7905
|
+
|
|
7906
|
+
# header parameters
|
|
7907
|
+
header_params = opts[:header_params] || {}
|
|
7908
|
+
# HTTP header 'Accept' (if needed)
|
|
7909
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
7910
|
+
# HTTP header 'Content-Type'
|
|
7911
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
7912
|
+
if !content_type.nil?
|
|
7913
|
+
header_params['Content-Type'] = content_type
|
|
7914
|
+
end
|
|
7915
|
+
|
|
7916
|
+
# form parameters
|
|
7917
|
+
form_params = opts[:form_params] || {}
|
|
7918
|
+
|
|
7919
|
+
# http body (model)
|
|
7920
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(ws_federation_provider_request)
|
|
7921
|
+
|
|
7922
|
+
# return_type
|
|
7923
|
+
return_type = opts[:debug_return_type] || 'WSFederationProvider'
|
|
7924
|
+
|
|
7925
|
+
# auth_names
|
|
7926
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
7927
|
+
|
|
7928
|
+
new_options = opts.merge(
|
|
7929
|
+
:operation => :"ProvidersApi.providers_wsfed_create",
|
|
7930
|
+
:header_params => header_params,
|
|
7931
|
+
:query_params => query_params,
|
|
7932
|
+
:form_params => form_params,
|
|
7933
|
+
:body => post_body,
|
|
7934
|
+
:auth_names => auth_names,
|
|
7935
|
+
:return_type => return_type
|
|
7936
|
+
)
|
|
7937
|
+
|
|
7938
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
7939
|
+
if @api_client.config.debugging
|
|
7940
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_wsfed_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7941
|
+
end
|
|
7942
|
+
return data, status_code, headers
|
|
7943
|
+
end
|
|
7944
|
+
|
|
7945
|
+
# WSFederationProvider Viewset
|
|
7946
|
+
# @param id [Integer] A unique integer value identifying this WS-Federation Provider.
|
|
7947
|
+
# @param [Hash] opts the optional parameters
|
|
7948
|
+
# @return [nil]
|
|
7949
|
+
def providers_wsfed_destroy(id, opts = {})
|
|
7950
|
+
providers_wsfed_destroy_with_http_info(id, opts)
|
|
7951
|
+
nil
|
|
7952
|
+
end
|
|
7953
|
+
|
|
7954
|
+
# WSFederationProvider Viewset
|
|
7955
|
+
# @param id [Integer] A unique integer value identifying this WS-Federation Provider.
|
|
7956
|
+
# @param [Hash] opts the optional parameters
|
|
7957
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
7958
|
+
def providers_wsfed_destroy_with_http_info(id, opts = {})
|
|
7959
|
+
if @api_client.config.debugging
|
|
7960
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_wsfed_destroy ...'
|
|
7961
|
+
end
|
|
7962
|
+
# verify the required parameter 'id' is set
|
|
7963
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
7964
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProvidersApi.providers_wsfed_destroy"
|
|
7965
|
+
end
|
|
7966
|
+
# resource path
|
|
7967
|
+
local_var_path = '/providers/wsfed/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
7968
|
+
|
|
7969
|
+
# query parameters
|
|
7970
|
+
query_params = opts[:query_params] || {}
|
|
7971
|
+
|
|
7972
|
+
# header parameters
|
|
7973
|
+
header_params = opts[:header_params] || {}
|
|
7974
|
+
# HTTP header 'Accept' (if needed)
|
|
7975
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
7976
|
+
|
|
7977
|
+
# form parameters
|
|
7978
|
+
form_params = opts[:form_params] || {}
|
|
7979
|
+
|
|
7980
|
+
# http body (model)
|
|
7981
|
+
post_body = opts[:debug_body]
|
|
7982
|
+
|
|
7983
|
+
# return_type
|
|
7984
|
+
return_type = opts[:debug_return_type]
|
|
7985
|
+
|
|
7986
|
+
# auth_names
|
|
7987
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
7988
|
+
|
|
7989
|
+
new_options = opts.merge(
|
|
7990
|
+
:operation => :"ProvidersApi.providers_wsfed_destroy",
|
|
7991
|
+
:header_params => header_params,
|
|
7992
|
+
:query_params => query_params,
|
|
7993
|
+
:form_params => form_params,
|
|
7994
|
+
:body => post_body,
|
|
7995
|
+
:auth_names => auth_names,
|
|
7996
|
+
:return_type => return_type
|
|
7997
|
+
)
|
|
7998
|
+
|
|
7999
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
8000
|
+
if @api_client.config.debugging
|
|
8001
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_wsfed_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8002
|
+
end
|
|
8003
|
+
return data, status_code, headers
|
|
8004
|
+
end
|
|
8005
|
+
|
|
8006
|
+
# WSFederationProvider Viewset
|
|
8007
|
+
# @param [Hash] opts the optional parameters
|
|
8008
|
+
# @option opts [String] :acs_url
|
|
8009
|
+
# @option opts [String] :assertion_valid_not_before
|
|
8010
|
+
# @option opts [String] :assertion_valid_not_on_or_after
|
|
8011
|
+
# @option opts [String] :audience
|
|
8012
|
+
# @option opts [String] :authentication_flow
|
|
8013
|
+
# @option opts [String] :authn_context_class_ref_mapping
|
|
8014
|
+
# @option opts [String] :authorization_flow
|
|
8015
|
+
# @option opts [String] :backchannel_application
|
|
8016
|
+
# @option opts [String] :default_name_id_policy
|
|
8017
|
+
# @option opts [String] :default_relay_state
|
|
8018
|
+
# @option opts [String] :digest_algorithm
|
|
8019
|
+
# @option opts [String] :encryption_kp
|
|
8020
|
+
# @option opts [String] :invalidation_flow
|
|
8021
|
+
# @option opts [Boolean] :is_backchannel
|
|
8022
|
+
# @option opts [String] :issuer
|
|
8023
|
+
# @option opts [String] :logout_method Method to use for logout. Front-channel iframe loads all logout URLs simultaneously in hidden iframes. Front-channel native uses your active browser tab to send post requests and redirect to providers. Back-channel sends logout requests directly from the server without user interaction (requires POST SLS binding).
|
|
8024
|
+
# @option opts [String] :name
|
|
8025
|
+
# @option opts [String] :name_id_mapping
|
|
8026
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
8027
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
8028
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
8029
|
+
# @option opts [Array<String>] :property_mappings
|
|
8030
|
+
# @option opts [String] :search A search term.
|
|
8031
|
+
# @option opts [String] :session_valid_not_on_or_after
|
|
8032
|
+
# @option opts [Boolean] :sign_assertion
|
|
8033
|
+
# @option opts [Boolean] :sign_logout_request
|
|
8034
|
+
# @option opts [Boolean] :sign_response
|
|
8035
|
+
# @option opts [String] :signature_algorithm
|
|
8036
|
+
# @option opts [String] :signing_kp
|
|
8037
|
+
# @option opts [String] :sls_binding This determines how authentik sends the logout response back to the Service Provider.
|
|
8038
|
+
# @option opts [String] :sls_url
|
|
8039
|
+
# @option opts [String] :sp_binding This determines how authentik sends the response back to the Service Provider.
|
|
8040
|
+
# @option opts [String] :verification_kp
|
|
8041
|
+
# @return [PaginatedWSFederationProviderList]
|
|
8042
|
+
def providers_wsfed_list(opts = {})
|
|
8043
|
+
data, _status_code, _headers = providers_wsfed_list_with_http_info(opts)
|
|
8044
|
+
data
|
|
8045
|
+
end
|
|
8046
|
+
|
|
8047
|
+
# WSFederationProvider Viewset
|
|
8048
|
+
# @param [Hash] opts the optional parameters
|
|
8049
|
+
# @option opts [String] :acs_url
|
|
8050
|
+
# @option opts [String] :assertion_valid_not_before
|
|
8051
|
+
# @option opts [String] :assertion_valid_not_on_or_after
|
|
8052
|
+
# @option opts [String] :audience
|
|
8053
|
+
# @option opts [String] :authentication_flow
|
|
8054
|
+
# @option opts [String] :authn_context_class_ref_mapping
|
|
8055
|
+
# @option opts [String] :authorization_flow
|
|
8056
|
+
# @option opts [String] :backchannel_application
|
|
8057
|
+
# @option opts [String] :default_name_id_policy
|
|
8058
|
+
# @option opts [String] :default_relay_state
|
|
8059
|
+
# @option opts [String] :digest_algorithm
|
|
8060
|
+
# @option opts [String] :encryption_kp
|
|
8061
|
+
# @option opts [String] :invalidation_flow
|
|
8062
|
+
# @option opts [Boolean] :is_backchannel
|
|
8063
|
+
# @option opts [String] :issuer
|
|
8064
|
+
# @option opts [String] :logout_method Method to use for logout. Front-channel iframe loads all logout URLs simultaneously in hidden iframes. Front-channel native uses your active browser tab to send post requests and redirect to providers. Back-channel sends logout requests directly from the server without user interaction (requires POST SLS binding).
|
|
8065
|
+
# @option opts [String] :name
|
|
8066
|
+
# @option opts [String] :name_id_mapping
|
|
8067
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
8068
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
8069
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
8070
|
+
# @option opts [Array<String>] :property_mappings
|
|
8071
|
+
# @option opts [String] :search A search term.
|
|
8072
|
+
# @option opts [String] :session_valid_not_on_or_after
|
|
8073
|
+
# @option opts [Boolean] :sign_assertion
|
|
8074
|
+
# @option opts [Boolean] :sign_logout_request
|
|
8075
|
+
# @option opts [Boolean] :sign_response
|
|
8076
|
+
# @option opts [String] :signature_algorithm
|
|
8077
|
+
# @option opts [String] :signing_kp
|
|
8078
|
+
# @option opts [String] :sls_binding This determines how authentik sends the logout response back to the Service Provider.
|
|
8079
|
+
# @option opts [String] :sls_url
|
|
8080
|
+
# @option opts [String] :sp_binding This determines how authentik sends the response back to the Service Provider.
|
|
8081
|
+
# @option opts [String] :verification_kp
|
|
8082
|
+
# @return [Array<(PaginatedWSFederationProviderList, Integer, Hash)>] PaginatedWSFederationProviderList data, response status code and response headers
|
|
8083
|
+
def providers_wsfed_list_with_http_info(opts = {})
|
|
8084
|
+
if @api_client.config.debugging
|
|
8085
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_wsfed_list ...'
|
|
8086
|
+
end
|
|
8087
|
+
allowable_values = ["urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName", "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress", "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified", "urn:oasis:names:tc:SAML:2.0:nameid-format:WindowsDomainQualifiedName", "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent", "urn:oasis:names:tc:SAML:2.0:nameid-format:transient"]
|
|
8088
|
+
if @api_client.config.client_side_validation && opts[:'default_name_id_policy'] && !allowable_values.include?(opts[:'default_name_id_policy'])
|
|
8089
|
+
fail ArgumentError, "invalid value for \"default_name_id_policy\", must be one of #{allowable_values}"
|
|
8090
|
+
end
|
|
8091
|
+
allowable_values = ["http://www.w3.org/2000/09/xmldsig#sha1", "http://www.w3.org/2001/04/xmldsig-more#sha384", "http://www.w3.org/2001/04/xmlenc#sha256", "http://www.w3.org/2001/04/xmlenc#sha512"]
|
|
8092
|
+
if @api_client.config.client_side_validation && opts[:'digest_algorithm'] && !allowable_values.include?(opts[:'digest_algorithm'])
|
|
8093
|
+
fail ArgumentError, "invalid value for \"digest_algorithm\", must be one of #{allowable_values}"
|
|
8094
|
+
end
|
|
8095
|
+
allowable_values = ["backchannel", "frontchannel_iframe", "frontchannel_native"]
|
|
8096
|
+
if @api_client.config.client_side_validation && opts[:'logout_method'] && !allowable_values.include?(opts[:'logout_method'])
|
|
8097
|
+
fail ArgumentError, "invalid value for \"logout_method\", must be one of #{allowable_values}"
|
|
8098
|
+
end
|
|
8099
|
+
allowable_values = ["http://www.w3.org/2000/09/xmldsig#dsa-sha1", "http://www.w3.org/2000/09/xmldsig#rsa-sha1", "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1", "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256", "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384", "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512", "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384", "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"]
|
|
8100
|
+
if @api_client.config.client_side_validation && opts[:'signature_algorithm'] && !allowable_values.include?(opts[:'signature_algorithm'])
|
|
8101
|
+
fail ArgumentError, "invalid value for \"signature_algorithm\", must be one of #{allowable_values}"
|
|
8102
|
+
end
|
|
8103
|
+
allowable_values = ["post", "redirect"]
|
|
8104
|
+
if @api_client.config.client_side_validation && opts[:'sls_binding'] && !allowable_values.include?(opts[:'sls_binding'])
|
|
8105
|
+
fail ArgumentError, "invalid value for \"sls_binding\", must be one of #{allowable_values}"
|
|
8106
|
+
end
|
|
8107
|
+
allowable_values = ["post", "redirect"]
|
|
8108
|
+
if @api_client.config.client_side_validation && opts[:'sp_binding'] && !allowable_values.include?(opts[:'sp_binding'])
|
|
8109
|
+
fail ArgumentError, "invalid value for \"sp_binding\", must be one of #{allowable_values}"
|
|
8110
|
+
end
|
|
8111
|
+
# resource path
|
|
8112
|
+
local_var_path = '/providers/wsfed/'
|
|
8113
|
+
|
|
8114
|
+
# query parameters
|
|
8115
|
+
query_params = opts[:query_params] || {}
|
|
8116
|
+
query_params[:'acs_url'] = opts[:'acs_url'] if !opts[:'acs_url'].nil?
|
|
8117
|
+
query_params[:'assertion_valid_not_before'] = opts[:'assertion_valid_not_before'] if !opts[:'assertion_valid_not_before'].nil?
|
|
8118
|
+
query_params[:'assertion_valid_not_on_or_after'] = opts[:'assertion_valid_not_on_or_after'] if !opts[:'assertion_valid_not_on_or_after'].nil?
|
|
8119
|
+
query_params[:'audience'] = opts[:'audience'] if !opts[:'audience'].nil?
|
|
8120
|
+
query_params[:'authentication_flow'] = opts[:'authentication_flow'] if !opts[:'authentication_flow'].nil?
|
|
8121
|
+
query_params[:'authn_context_class_ref_mapping'] = opts[:'authn_context_class_ref_mapping'] if !opts[:'authn_context_class_ref_mapping'].nil?
|
|
8122
|
+
query_params[:'authorization_flow'] = opts[:'authorization_flow'] if !opts[:'authorization_flow'].nil?
|
|
8123
|
+
query_params[:'backchannel_application'] = opts[:'backchannel_application'] if !opts[:'backchannel_application'].nil?
|
|
8124
|
+
query_params[:'default_name_id_policy'] = opts[:'default_name_id_policy'] if !opts[:'default_name_id_policy'].nil?
|
|
8125
|
+
query_params[:'default_relay_state'] = opts[:'default_relay_state'] if !opts[:'default_relay_state'].nil?
|
|
8126
|
+
query_params[:'digest_algorithm'] = opts[:'digest_algorithm'] if !opts[:'digest_algorithm'].nil?
|
|
8127
|
+
query_params[:'encryption_kp'] = opts[:'encryption_kp'] if !opts[:'encryption_kp'].nil?
|
|
8128
|
+
query_params[:'invalidation_flow'] = opts[:'invalidation_flow'] if !opts[:'invalidation_flow'].nil?
|
|
8129
|
+
query_params[:'is_backchannel'] = opts[:'is_backchannel'] if !opts[:'is_backchannel'].nil?
|
|
8130
|
+
query_params[:'issuer'] = opts[:'issuer'] if !opts[:'issuer'].nil?
|
|
8131
|
+
query_params[:'logout_method'] = opts[:'logout_method'] if !opts[:'logout_method'].nil?
|
|
8132
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
8133
|
+
query_params[:'name_id_mapping'] = opts[:'name_id_mapping'] if !opts[:'name_id_mapping'].nil?
|
|
8134
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
8135
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
8136
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
8137
|
+
query_params[:'property_mappings'] = @api_client.build_collection_param(opts[:'property_mappings'], :multi) if !opts[:'property_mappings'].nil?
|
|
8138
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
8139
|
+
query_params[:'session_valid_not_on_or_after'] = opts[:'session_valid_not_on_or_after'] if !opts[:'session_valid_not_on_or_after'].nil?
|
|
8140
|
+
query_params[:'sign_assertion'] = opts[:'sign_assertion'] if !opts[:'sign_assertion'].nil?
|
|
8141
|
+
query_params[:'sign_logout_request'] = opts[:'sign_logout_request'] if !opts[:'sign_logout_request'].nil?
|
|
8142
|
+
query_params[:'sign_response'] = opts[:'sign_response'] if !opts[:'sign_response'].nil?
|
|
8143
|
+
query_params[:'signature_algorithm'] = opts[:'signature_algorithm'] if !opts[:'signature_algorithm'].nil?
|
|
8144
|
+
query_params[:'signing_kp'] = opts[:'signing_kp'] if !opts[:'signing_kp'].nil?
|
|
8145
|
+
query_params[:'sls_binding'] = opts[:'sls_binding'] if !opts[:'sls_binding'].nil?
|
|
8146
|
+
query_params[:'sls_url'] = opts[:'sls_url'] if !opts[:'sls_url'].nil?
|
|
8147
|
+
query_params[:'sp_binding'] = opts[:'sp_binding'] if !opts[:'sp_binding'].nil?
|
|
8148
|
+
query_params[:'verification_kp'] = opts[:'verification_kp'] if !opts[:'verification_kp'].nil?
|
|
8149
|
+
|
|
8150
|
+
# header parameters
|
|
8151
|
+
header_params = opts[:header_params] || {}
|
|
8152
|
+
# HTTP header 'Accept' (if needed)
|
|
8153
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
8154
|
+
|
|
8155
|
+
# form parameters
|
|
8156
|
+
form_params = opts[:form_params] || {}
|
|
8157
|
+
|
|
8158
|
+
# http body (model)
|
|
8159
|
+
post_body = opts[:debug_body]
|
|
8160
|
+
|
|
8161
|
+
# return_type
|
|
8162
|
+
return_type = opts[:debug_return_type] || 'PaginatedWSFederationProviderList'
|
|
8163
|
+
|
|
8164
|
+
# auth_names
|
|
8165
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
8166
|
+
|
|
8167
|
+
new_options = opts.merge(
|
|
8168
|
+
:operation => :"ProvidersApi.providers_wsfed_list",
|
|
8169
|
+
:header_params => header_params,
|
|
8170
|
+
:query_params => query_params,
|
|
8171
|
+
:form_params => form_params,
|
|
8172
|
+
:body => post_body,
|
|
8173
|
+
:auth_names => auth_names,
|
|
8174
|
+
:return_type => return_type
|
|
8175
|
+
)
|
|
8176
|
+
|
|
8177
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8178
|
+
if @api_client.config.debugging
|
|
8179
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_wsfed_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8180
|
+
end
|
|
8181
|
+
return data, status_code, headers
|
|
8182
|
+
end
|
|
8183
|
+
|
|
8184
|
+
# Return metadata as XML string
|
|
8185
|
+
# @param id [Integer] A unique integer value identifying this WS-Federation Provider.
|
|
8186
|
+
# @param [Hash] opts the optional parameters
|
|
8187
|
+
# @option opts [Boolean] :download
|
|
8188
|
+
# @option opts [String] :force_binding Optionally force the metadata to only include one binding.
|
|
8189
|
+
# @return [SAMLMetadata]
|
|
8190
|
+
def providers_wsfed_metadata_retrieve(id, opts = {})
|
|
8191
|
+
data, _status_code, _headers = providers_wsfed_metadata_retrieve_with_http_info(id, opts)
|
|
8192
|
+
data
|
|
8193
|
+
end
|
|
8194
|
+
|
|
8195
|
+
# Return metadata as XML string
|
|
8196
|
+
# @param id [Integer] A unique integer value identifying this WS-Federation Provider.
|
|
8197
|
+
# @param [Hash] opts the optional parameters
|
|
8198
|
+
# @option opts [Boolean] :download
|
|
8199
|
+
# @option opts [String] :force_binding Optionally force the metadata to only include one binding.
|
|
8200
|
+
# @return [Array<(SAMLMetadata, Integer, Hash)>] SAMLMetadata data, response status code and response headers
|
|
8201
|
+
def providers_wsfed_metadata_retrieve_with_http_info(id, opts = {})
|
|
8202
|
+
if @api_client.config.debugging
|
|
8203
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_wsfed_metadata_retrieve ...'
|
|
8204
|
+
end
|
|
8205
|
+
# verify the required parameter 'id' is set
|
|
8206
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
8207
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProvidersApi.providers_wsfed_metadata_retrieve"
|
|
8208
|
+
end
|
|
8209
|
+
allowable_values = ["urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"]
|
|
8210
|
+
if @api_client.config.client_side_validation && opts[:'force_binding'] && !allowable_values.include?(opts[:'force_binding'])
|
|
8211
|
+
fail ArgumentError, "invalid value for \"force_binding\", must be one of #{allowable_values}"
|
|
8212
|
+
end
|
|
8213
|
+
# resource path
|
|
8214
|
+
local_var_path = '/providers/wsfed/{id}/metadata/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
8215
|
+
|
|
8216
|
+
# query parameters
|
|
8217
|
+
query_params = opts[:query_params] || {}
|
|
8218
|
+
query_params[:'download'] = opts[:'download'] if !opts[:'download'].nil?
|
|
8219
|
+
query_params[:'force_binding'] = opts[:'force_binding'] if !opts[:'force_binding'].nil?
|
|
8220
|
+
|
|
8221
|
+
# header parameters
|
|
8222
|
+
header_params = opts[:header_params] || {}
|
|
8223
|
+
# HTTP header 'Accept' (if needed)
|
|
8224
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml']) unless header_params['Accept']
|
|
8225
|
+
|
|
8226
|
+
# form parameters
|
|
8227
|
+
form_params = opts[:form_params] || {}
|
|
8228
|
+
|
|
8229
|
+
# http body (model)
|
|
8230
|
+
post_body = opts[:debug_body]
|
|
8231
|
+
|
|
8232
|
+
# return_type
|
|
8233
|
+
return_type = opts[:debug_return_type] || 'SAMLMetadata'
|
|
8234
|
+
|
|
8235
|
+
# auth_names
|
|
8236
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
8237
|
+
|
|
8238
|
+
new_options = opts.merge(
|
|
8239
|
+
:operation => :"ProvidersApi.providers_wsfed_metadata_retrieve",
|
|
8240
|
+
:header_params => header_params,
|
|
8241
|
+
:query_params => query_params,
|
|
8242
|
+
:form_params => form_params,
|
|
8243
|
+
:body => post_body,
|
|
8244
|
+
:auth_names => auth_names,
|
|
8245
|
+
:return_type => return_type
|
|
8246
|
+
)
|
|
8247
|
+
|
|
8248
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8249
|
+
if @api_client.config.debugging
|
|
8250
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_wsfed_metadata_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8251
|
+
end
|
|
8252
|
+
return data, status_code, headers
|
|
8253
|
+
end
|
|
8254
|
+
|
|
8255
|
+
# WSFederationProvider Viewset
|
|
8256
|
+
# @param id [Integer] A unique integer value identifying this WS-Federation Provider.
|
|
8257
|
+
# @param [Hash] opts the optional parameters
|
|
8258
|
+
# @option opts [PatchedWSFederationProviderRequest] :patched_ws_federation_provider_request
|
|
8259
|
+
# @return [WSFederationProvider]
|
|
8260
|
+
def providers_wsfed_partial_update(id, opts = {})
|
|
8261
|
+
data, _status_code, _headers = providers_wsfed_partial_update_with_http_info(id, opts)
|
|
8262
|
+
data
|
|
8263
|
+
end
|
|
8264
|
+
|
|
8265
|
+
# WSFederationProvider Viewset
|
|
8266
|
+
# @param id [Integer] A unique integer value identifying this WS-Federation Provider.
|
|
8267
|
+
# @param [Hash] opts the optional parameters
|
|
8268
|
+
# @option opts [PatchedWSFederationProviderRequest] :patched_ws_federation_provider_request
|
|
8269
|
+
# @return [Array<(WSFederationProvider, Integer, Hash)>] WSFederationProvider data, response status code and response headers
|
|
8270
|
+
def providers_wsfed_partial_update_with_http_info(id, opts = {})
|
|
8271
|
+
if @api_client.config.debugging
|
|
8272
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_wsfed_partial_update ...'
|
|
8273
|
+
end
|
|
8274
|
+
# verify the required parameter 'id' is set
|
|
8275
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
8276
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProvidersApi.providers_wsfed_partial_update"
|
|
8277
|
+
end
|
|
8278
|
+
# resource path
|
|
8279
|
+
local_var_path = '/providers/wsfed/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
8280
|
+
|
|
8281
|
+
# query parameters
|
|
8282
|
+
query_params = opts[:query_params] || {}
|
|
8283
|
+
|
|
8284
|
+
# header parameters
|
|
8285
|
+
header_params = opts[:header_params] || {}
|
|
8286
|
+
# HTTP header 'Accept' (if needed)
|
|
8287
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
8288
|
+
# HTTP header 'Content-Type'
|
|
8289
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
8290
|
+
if !content_type.nil?
|
|
8291
|
+
header_params['Content-Type'] = content_type
|
|
8292
|
+
end
|
|
8293
|
+
|
|
8294
|
+
# form parameters
|
|
8295
|
+
form_params = opts[:form_params] || {}
|
|
8296
|
+
|
|
8297
|
+
# http body (model)
|
|
8298
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_ws_federation_provider_request'])
|
|
8299
|
+
|
|
8300
|
+
# return_type
|
|
8301
|
+
return_type = opts[:debug_return_type] || 'WSFederationProvider'
|
|
8302
|
+
|
|
8303
|
+
# auth_names
|
|
8304
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
8305
|
+
|
|
8306
|
+
new_options = opts.merge(
|
|
8307
|
+
:operation => :"ProvidersApi.providers_wsfed_partial_update",
|
|
8308
|
+
:header_params => header_params,
|
|
8309
|
+
:query_params => query_params,
|
|
8310
|
+
:form_params => form_params,
|
|
8311
|
+
:body => post_body,
|
|
8312
|
+
:auth_names => auth_names,
|
|
8313
|
+
:return_type => return_type
|
|
8314
|
+
)
|
|
8315
|
+
|
|
8316
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
8317
|
+
if @api_client.config.debugging
|
|
8318
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_wsfed_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8319
|
+
end
|
|
8320
|
+
return data, status_code, headers
|
|
8321
|
+
end
|
|
8322
|
+
|
|
8323
|
+
# Preview user data for provider
|
|
8324
|
+
# @param id [Integer] A unique integer value identifying this WS-Federation Provider.
|
|
8325
|
+
# @param [Hash] opts the optional parameters
|
|
8326
|
+
# @option opts [Integer] :for_user
|
|
8327
|
+
# @return [PropertyMappingPreview]
|
|
8328
|
+
def providers_wsfed_preview_user_retrieve(id, opts = {})
|
|
8329
|
+
data, _status_code, _headers = providers_wsfed_preview_user_retrieve_with_http_info(id, opts)
|
|
8330
|
+
data
|
|
8331
|
+
end
|
|
8332
|
+
|
|
8333
|
+
# Preview user data for provider
|
|
8334
|
+
# @param id [Integer] A unique integer value identifying this WS-Federation Provider.
|
|
8335
|
+
# @param [Hash] opts the optional parameters
|
|
8336
|
+
# @option opts [Integer] :for_user
|
|
8337
|
+
# @return [Array<(PropertyMappingPreview, Integer, Hash)>] PropertyMappingPreview data, response status code and response headers
|
|
8338
|
+
def providers_wsfed_preview_user_retrieve_with_http_info(id, opts = {})
|
|
8339
|
+
if @api_client.config.debugging
|
|
8340
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_wsfed_preview_user_retrieve ...'
|
|
8341
|
+
end
|
|
8342
|
+
# verify the required parameter 'id' is set
|
|
8343
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
8344
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProvidersApi.providers_wsfed_preview_user_retrieve"
|
|
8345
|
+
end
|
|
8346
|
+
# resource path
|
|
8347
|
+
local_var_path = '/providers/wsfed/{id}/preview_user/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
8348
|
+
|
|
8349
|
+
# query parameters
|
|
8350
|
+
query_params = opts[:query_params] || {}
|
|
8351
|
+
query_params[:'for_user'] = opts[:'for_user'] if !opts[:'for_user'].nil?
|
|
8352
|
+
|
|
8353
|
+
# header parameters
|
|
8354
|
+
header_params = opts[:header_params] || {}
|
|
8355
|
+
# HTTP header 'Accept' (if needed)
|
|
8356
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
8357
|
+
|
|
8358
|
+
# form parameters
|
|
8359
|
+
form_params = opts[:form_params] || {}
|
|
8360
|
+
|
|
8361
|
+
# http body (model)
|
|
8362
|
+
post_body = opts[:debug_body]
|
|
8363
|
+
|
|
8364
|
+
# return_type
|
|
8365
|
+
return_type = opts[:debug_return_type] || 'PropertyMappingPreview'
|
|
8366
|
+
|
|
8367
|
+
# auth_names
|
|
8368
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
8369
|
+
|
|
8370
|
+
new_options = opts.merge(
|
|
8371
|
+
:operation => :"ProvidersApi.providers_wsfed_preview_user_retrieve",
|
|
8372
|
+
:header_params => header_params,
|
|
8373
|
+
:query_params => query_params,
|
|
8374
|
+
:form_params => form_params,
|
|
8375
|
+
:body => post_body,
|
|
8376
|
+
:auth_names => auth_names,
|
|
8377
|
+
:return_type => return_type
|
|
8378
|
+
)
|
|
8379
|
+
|
|
8380
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8381
|
+
if @api_client.config.debugging
|
|
8382
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_wsfed_preview_user_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8383
|
+
end
|
|
8384
|
+
return data, status_code, headers
|
|
8385
|
+
end
|
|
8386
|
+
|
|
8387
|
+
# WSFederationProvider Viewset
|
|
8388
|
+
# @param id [Integer] A unique integer value identifying this WS-Federation Provider.
|
|
8389
|
+
# @param [Hash] opts the optional parameters
|
|
8390
|
+
# @return [WSFederationProvider]
|
|
8391
|
+
def providers_wsfed_retrieve(id, opts = {})
|
|
8392
|
+
data, _status_code, _headers = providers_wsfed_retrieve_with_http_info(id, opts)
|
|
8393
|
+
data
|
|
8394
|
+
end
|
|
8395
|
+
|
|
8396
|
+
# WSFederationProvider Viewset
|
|
8397
|
+
# @param id [Integer] A unique integer value identifying this WS-Federation Provider.
|
|
8398
|
+
# @param [Hash] opts the optional parameters
|
|
8399
|
+
# @return [Array<(WSFederationProvider, Integer, Hash)>] WSFederationProvider data, response status code and response headers
|
|
8400
|
+
def providers_wsfed_retrieve_with_http_info(id, opts = {})
|
|
8401
|
+
if @api_client.config.debugging
|
|
8402
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_wsfed_retrieve ...'
|
|
8403
|
+
end
|
|
8404
|
+
# verify the required parameter 'id' is set
|
|
8405
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
8406
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProvidersApi.providers_wsfed_retrieve"
|
|
8407
|
+
end
|
|
8408
|
+
# resource path
|
|
8409
|
+
local_var_path = '/providers/wsfed/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
8410
|
+
|
|
8411
|
+
# query parameters
|
|
8412
|
+
query_params = opts[:query_params] || {}
|
|
8413
|
+
|
|
8414
|
+
# header parameters
|
|
8415
|
+
header_params = opts[:header_params] || {}
|
|
8416
|
+
# HTTP header 'Accept' (if needed)
|
|
8417
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
8418
|
+
|
|
8419
|
+
# form parameters
|
|
8420
|
+
form_params = opts[:form_params] || {}
|
|
8421
|
+
|
|
8422
|
+
# http body (model)
|
|
8423
|
+
post_body = opts[:debug_body]
|
|
8424
|
+
|
|
8425
|
+
# return_type
|
|
8426
|
+
return_type = opts[:debug_return_type] || 'WSFederationProvider'
|
|
8427
|
+
|
|
8428
|
+
# auth_names
|
|
8429
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
8430
|
+
|
|
8431
|
+
new_options = opts.merge(
|
|
8432
|
+
:operation => :"ProvidersApi.providers_wsfed_retrieve",
|
|
8433
|
+
:header_params => header_params,
|
|
8434
|
+
:query_params => query_params,
|
|
8435
|
+
:form_params => form_params,
|
|
8436
|
+
:body => post_body,
|
|
8437
|
+
:auth_names => auth_names,
|
|
8438
|
+
:return_type => return_type
|
|
8439
|
+
)
|
|
8440
|
+
|
|
8441
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8442
|
+
if @api_client.config.debugging
|
|
8443
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_wsfed_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8444
|
+
end
|
|
8445
|
+
return data, status_code, headers
|
|
8446
|
+
end
|
|
8447
|
+
|
|
8448
|
+
# WSFederationProvider Viewset
|
|
8449
|
+
# @param id [Integer] A unique integer value identifying this WS-Federation Provider.
|
|
8450
|
+
# @param ws_federation_provider_request [WSFederationProviderRequest]
|
|
8451
|
+
# @param [Hash] opts the optional parameters
|
|
8452
|
+
# @return [WSFederationProvider]
|
|
8453
|
+
def providers_wsfed_update(id, ws_federation_provider_request, opts = {})
|
|
8454
|
+
data, _status_code, _headers = providers_wsfed_update_with_http_info(id, ws_federation_provider_request, opts)
|
|
8455
|
+
data
|
|
8456
|
+
end
|
|
8457
|
+
|
|
8458
|
+
# WSFederationProvider Viewset
|
|
8459
|
+
# @param id [Integer] A unique integer value identifying this WS-Federation Provider.
|
|
8460
|
+
# @param ws_federation_provider_request [WSFederationProviderRequest]
|
|
8461
|
+
# @param [Hash] opts the optional parameters
|
|
8462
|
+
# @return [Array<(WSFederationProvider, Integer, Hash)>] WSFederationProvider data, response status code and response headers
|
|
8463
|
+
def providers_wsfed_update_with_http_info(id, ws_federation_provider_request, opts = {})
|
|
8464
|
+
if @api_client.config.debugging
|
|
8465
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_wsfed_update ...'
|
|
8466
|
+
end
|
|
8467
|
+
# verify the required parameter 'id' is set
|
|
8468
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
8469
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProvidersApi.providers_wsfed_update"
|
|
8470
|
+
end
|
|
8471
|
+
# verify the required parameter 'ws_federation_provider_request' is set
|
|
8472
|
+
if @api_client.config.client_side_validation && ws_federation_provider_request.nil?
|
|
8473
|
+
fail ArgumentError, "Missing the required parameter 'ws_federation_provider_request' when calling ProvidersApi.providers_wsfed_update"
|
|
8474
|
+
end
|
|
8475
|
+
# resource path
|
|
8476
|
+
local_var_path = '/providers/wsfed/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
8477
|
+
|
|
8478
|
+
# query parameters
|
|
8479
|
+
query_params = opts[:query_params] || {}
|
|
8480
|
+
|
|
8481
|
+
# header parameters
|
|
8482
|
+
header_params = opts[:header_params] || {}
|
|
8483
|
+
# HTTP header 'Accept' (if needed)
|
|
8484
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
8485
|
+
# HTTP header 'Content-Type'
|
|
8486
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
8487
|
+
if !content_type.nil?
|
|
8488
|
+
header_params['Content-Type'] = content_type
|
|
8489
|
+
end
|
|
8490
|
+
|
|
8491
|
+
# form parameters
|
|
8492
|
+
form_params = opts[:form_params] || {}
|
|
8493
|
+
|
|
8494
|
+
# http body (model)
|
|
8495
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(ws_federation_provider_request)
|
|
8496
|
+
|
|
8497
|
+
# return_type
|
|
8498
|
+
return_type = opts[:debug_return_type] || 'WSFederationProvider'
|
|
8499
|
+
|
|
8500
|
+
# auth_names
|
|
8501
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
8502
|
+
|
|
8503
|
+
new_options = opts.merge(
|
|
8504
|
+
:operation => :"ProvidersApi.providers_wsfed_update",
|
|
8505
|
+
:header_params => header_params,
|
|
8506
|
+
:query_params => query_params,
|
|
8507
|
+
:form_params => form_params,
|
|
8508
|
+
:body => post_body,
|
|
8509
|
+
:auth_names => auth_names,
|
|
8510
|
+
:return_type => return_type
|
|
8511
|
+
)
|
|
8512
|
+
|
|
8513
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
8514
|
+
if @api_client.config.debugging
|
|
8515
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_wsfed_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8516
|
+
end
|
|
8517
|
+
return data, status_code, headers
|
|
8518
|
+
end
|
|
8519
|
+
|
|
8520
|
+
# Get a list of all objects that use this object
|
|
8521
|
+
# @param id [Integer] A unique integer value identifying this WS-Federation Provider.
|
|
8522
|
+
# @param [Hash] opts the optional parameters
|
|
8523
|
+
# @return [Array<UsedBy>]
|
|
8524
|
+
def providers_wsfed_used_by_list(id, opts = {})
|
|
8525
|
+
data, _status_code, _headers = providers_wsfed_used_by_list_with_http_info(id, opts)
|
|
8526
|
+
data
|
|
8527
|
+
end
|
|
8528
|
+
|
|
8529
|
+
# Get a list of all objects that use this object
|
|
8530
|
+
# @param id [Integer] A unique integer value identifying this WS-Federation Provider.
|
|
8531
|
+
# @param [Hash] opts the optional parameters
|
|
8532
|
+
# @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
|
|
8533
|
+
def providers_wsfed_used_by_list_with_http_info(id, opts = {})
|
|
8534
|
+
if @api_client.config.debugging
|
|
8535
|
+
@api_client.config.logger.debug 'Calling API: ProvidersApi.providers_wsfed_used_by_list ...'
|
|
8536
|
+
end
|
|
8537
|
+
# verify the required parameter 'id' is set
|
|
8538
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
8539
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProvidersApi.providers_wsfed_used_by_list"
|
|
8540
|
+
end
|
|
8541
|
+
# resource path
|
|
8542
|
+
local_var_path = '/providers/wsfed/{id}/used_by/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
8543
|
+
|
|
8544
|
+
# query parameters
|
|
8545
|
+
query_params = opts[:query_params] || {}
|
|
8546
|
+
|
|
8547
|
+
# header parameters
|
|
8548
|
+
header_params = opts[:header_params] || {}
|
|
8549
|
+
# HTTP header 'Accept' (if needed)
|
|
8550
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
8551
|
+
|
|
8552
|
+
# form parameters
|
|
8553
|
+
form_params = opts[:form_params] || {}
|
|
8554
|
+
|
|
8555
|
+
# http body (model)
|
|
8556
|
+
post_body = opts[:debug_body]
|
|
8557
|
+
|
|
8558
|
+
# return_type
|
|
8559
|
+
return_type = opts[:debug_return_type] || 'Array<UsedBy>'
|
|
8560
|
+
|
|
8561
|
+
# auth_names
|
|
8562
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
8563
|
+
|
|
8564
|
+
new_options = opts.merge(
|
|
8565
|
+
:operation => :"ProvidersApi.providers_wsfed_used_by_list",
|
|
8566
|
+
:header_params => header_params,
|
|
8567
|
+
:query_params => query_params,
|
|
8568
|
+
:form_params => form_params,
|
|
8569
|
+
:body => post_body,
|
|
8570
|
+
:auth_names => auth_names,
|
|
8571
|
+
:return_type => return_type
|
|
8572
|
+
)
|
|
8573
|
+
|
|
8574
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8575
|
+
if @api_client.config.debugging
|
|
8576
|
+
@api_client.config.logger.debug "API called: ProvidersApi#providers_wsfed_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8577
|
+
end
|
|
8578
|
+
return data, status_code, headers
|
|
8579
|
+
end
|
|
7878
8580
|
end
|
|
7879
8581
|
end
|