authentik-api 2026.2.4 → 2026.5.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.md +3 -3
- data/README_API.md +66 -14
- data/lib/authentik/api/api/admin_api.rb +4 -12
- data/lib/authentik/api/api/core_api.rb +143 -18
- data/lib/authentik/api/api/crypto_api.rb +2 -6
- data/lib/authentik/api/api/endpoints_api.rb +1577 -656
- data/lib/authentik/api/api/events_api.rb +121 -38
- data/lib/authentik/api/api/flows_api.rb +8 -90
- data/lib/authentik/api/api/lifecycle_api.rb +22 -13
- data/lib/authentik/api/api/managed_api.rb +73 -0
- data/lib/authentik/api/api/policies_api.rb +5 -6
- data/lib/authentik/api/api/providers_api.rb +46 -108
- data/lib/authentik/api/api/rbac_api.rb +0 -5
- data/lib/authentik/api/api/schema_api.rb +4 -12
- data/lib/authentik/api/api/sources_api.rb +35 -96
- data/lib/authentik/api/api/ssf_api.rb +63 -6
- data/lib/authentik/api/api/stages_api.rb +581 -102
- data/lib/authentik/api/api/tasks_api.rb +5 -13
- data/lib/authentik/api/models/account_lockdown_stage.rb +372 -0
- data/lib/authentik/api/models/account_lockdown_stage_request.rb +219 -0
- data/lib/authentik/api/models/app_enum.rb +3 -2
- data/lib/authentik/api/models/apple_independent_secure_enclave.rb +246 -0
- data/lib/authentik/api/models/apple_independent_secure_enclave_request.rb +273 -0
- data/lib/authentik/api/models/application.rb +14 -4
- data/lib/authentik/api/models/application_request.rb +14 -4
- data/lib/authentik/api/models/authenticated_session_user_agent_device.rb +2 -30
- data/lib/authentik/api/models/authenticated_session_user_agent_os.rb +4 -60
- data/lib/authentik/api/models/authentication_enum.rb +2 -1
- data/lib/authentik/api/models/authenticator_validate_stage.rb +51 -4
- data/lib/authentik/api/models/authenticator_validate_stage_request.rb +51 -4
- data/lib/authentik/api/models/authenticator_web_authn_stage.rb +23 -2
- data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +23 -2
- data/lib/authentik/api/models/{flow_import_result.rb → blueprint_import_result.rb} +4 -4
- data/lib/authentik/api/models/brand.rb +11 -1
- data/lib/authentik/api/models/brand_request.rb +11 -1
- data/lib/authentik/api/models/certificate_key_pair.rb +1 -1
- data/lib/authentik/api/models/certificate_key_pair_key_type_enum.rb +37 -0
- data/lib/authentik/api/models/compatibility_mode_enum.rb +3 -1
- data/lib/authentik/api/models/{consent_stage_mode_enum.rb → consent_mode_enum.rb} +3 -3
- data/lib/authentik/api/models/consent_stage.rb +1 -1
- data/lib/authentik/api/models/consent_stage_request.rb +1 -1
- data/lib/authentik/api/models/country_code_enum.rb +3 -3
- data/lib/authentik/api/models/current_brand.rb +10 -1
- data/lib/authentik/api/models/current_brand_flags.rb +31 -27
- data/lib/authentik/api/models/delivery_method_enum.rb +3 -1
- data/lib/authentik/api/models/event_matcher_policy.rb +15 -5
- data/lib/authentik/api/models/event_matcher_policy_request.rb +30 -5
- data/lib/authentik/api/models/event_stats.rb +187 -0
- data/lib/authentik/api/models/event_volume.rb +1 -1
- data/lib/authentik/api/models/events_requested_enum.rb +7 -1
- data/lib/authentik/api/models/expiring_base_grant_model.rb +1 -1
- data/lib/authentik/api/models/force_binding_enum.rb +34 -0
- data/lib/authentik/api/models/{resident_key_requirement_enum.rb → format_enum.rb} +6 -7
- data/lib/authentik/api/models/geo_ip_policy.rb +1 -1
- data/lib/authentik/api/models/{detailed_country_field.rb → geo_ip_policy_countries_obj_inner.rb} +22 -26
- data/lib/authentik/api/models/google_chrome_connector.rb +326 -0
- data/lib/authentik/api/models/google_chrome_connector_request.rb +214 -0
- data/lib/authentik/api/models/grant_types_enum.rb +39 -0
- data/lib/authentik/api/models/group_kerberos_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
- data/lib/authentik/api/models/group_ldap_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_o_auth_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_plex_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_saml_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_telegram_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/iframe_logout_challenge.rb +1 -1
- data/lib/authentik/api/models/invitation_send_email_request.rb +213 -0
- data/lib/authentik/api/models/key_type_enum.rb +3 -3
- data/lib/authentik/api/models/lang_enum.rb +131 -0
- data/lib/authentik/api/models/lifecycle_iteration.rb +30 -86
- data/lib/authentik/api/models/logout_url.rb +209 -0
- data/lib/authentik/api/models/model_enum.rb +3 -1
- data/lib/authentik/api/models/native_logout_challenge.rb +68 -37
- data/lib/authentik/api/models/notification_transport.rb +13 -2
- data/lib/authentik/api/models/notification_transport_request.rb +13 -2
- data/lib/authentik/api/models/o_auth2_provider.rb +12 -1
- data/lib/authentik/api/models/o_auth2_provider_request.rb +12 -1
- data/lib/authentik/api/models/operating_system.rb +0 -17
- data/lib/authentik/api/models/operating_system_request.rb +2 -9
- data/lib/authentik/api/models/paginated_account_lockdown_stage_list.rb +214 -0
- data/lib/authentik/api/models/paginated_apple_independent_secure_enclave_list.rb +214 -0
- data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +32 -4
- data/lib/authentik/api/models/paginated_google_chrome_connector_list.rb +214 -0
- data/lib/authentik/api/models/patched_account_lockdown_stage_request.rb +212 -0
- data/lib/authentik/api/models/patched_apple_independent_secure_enclave_request.rb +235 -0
- data/lib/authentik/api/models/patched_application_request.rb +14 -4
- data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +51 -4
- data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +23 -2
- data/lib/authentik/api/models/patched_brand_request.rb +11 -1
- data/lib/authentik/api/models/patched_consent_stage_request.rb +1 -1
- data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +30 -5
- data/lib/authentik/api/models/patched_google_chrome_connector_request.rb +190 -0
- data/lib/authentik/api/models/patched_group_kerberos_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_ldap_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_o_auth_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_plex_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_saml_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_telegram_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_notification_transport_request.rb +13 -2
- data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +12 -1
- data/lib/authentik/api/models/patched_saml_provider_request.rb +17 -27
- data/lib/authentik/api/models/patched_saml_source_request.rb +11 -1
- data/lib/authentik/api/models/patched_settings_request_flags.rb +31 -27
- data/lib/authentik/api/models/patched_ssf_provider_request.rb +13 -4
- data/lib/authentik/api/models/patched_user_kerberos_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_ldap_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_o_auth_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_plex_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_saml_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_telegram_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/prompt_type_enum.rb +4 -1
- data/lib/authentik/api/models/redirect_uri.rb +13 -4
- data/lib/authentik/api/models/redirect_uri_request.rb +13 -4
- data/lib/authentik/api/models/redirect_uri_type_enum.rb +34 -0
- data/lib/authentik/api/models/related_rule.rb +250 -0
- data/lib/authentik/api/models/saml_provider.rb +98 -8
- data/lib/authentik/api/models/saml_provider_request.rb +17 -27
- data/lib/authentik/api/models/saml_source.rb +11 -1
- data/lib/authentik/api/models/saml_source_request.rb +11 -1
- data/lib/authentik/api/models/ssf_provider.rb +41 -4
- data/lib/authentik/api/models/ssf_provider_request.rb +13 -4
- data/lib/authentik/api/models/ssf_stream.rb +10 -1
- data/lib/authentik/api/models/ssf_stream_status_enum.rb +36 -0
- data/lib/authentik/api/models/task.rb +1 -1
- data/lib/authentik/api/models/{task_state_enum.rb → task_status_enum.rb} +3 -3
- data/lib/authentik/api/models/token_model.rb +1 -1
- data/lib/authentik/api/models/{notification_transport_mode_enum.rb → transport_mode_enum.rb} +3 -3
- data/lib/authentik/api/models/usage_enum.rb +33 -0
- data/lib/authentik/api/models/user_account_lockdown_request.rb +144 -0
- data/lib/authentik/api/models/user_kerberos_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
- data/lib/authentik/api/models/user_ldap_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_o_auth_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
- data/lib/authentik/api/models/user_plex_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_saml_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_telegram_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/vendor_enum.rb +2 -1
- data/lib/authentik/api/models/web_authn_hint_enum.rb +35 -0
- data/lib/authentik/api/version.rb +1 -1
- data/spec/api/admin_api_spec.rb +2 -2
- data/spec/api/core_api_spec.rb +27 -3
- data/spec/api/crypto_api_spec.rb +1 -1
- data/spec/api/endpoints_api_spec.rb +167 -0
- data/spec/api/events_api_spec.rb +33 -7
- data/spec/api/flows_api_spec.rb +4 -16
- data/spec/api/lifecycle_api_spec.rb +6 -3
- data/spec/api/managed_api_spec.rb +13 -0
- data/spec/api/policies_api_spec.rb +2 -1
- data/spec/api/providers_api_spec.rb +21 -19
- data/spec/api/schema_api_spec.rb +2 -2
- data/spec/api/sources_api_spec.rb +17 -16
- data/spec/api/ssf_api_spec.rb +12 -1
- data/spec/api/stages_api_spec.rb +117 -18
- data/spec/api/tasks_api_spec.rb +2 -2
- data/spec/models/account_lockdown_stage_request_spec.rb +60 -0
- data/spec/models/account_lockdown_stage_spec.rb +96 -0
- data/spec/models/apple_independent_secure_enclave_request_spec.rb +54 -0
- data/spec/models/apple_independent_secure_enclave_spec.rb +54 -0
- data/spec/models/application_request_spec.rb +6 -0
- data/spec/models/application_spec.rb +6 -0
- data/spec/models/authenticator_validate_stage_request_spec.rb +30 -0
- data/spec/models/authenticator_validate_stage_spec.rb +30 -0
- data/spec/models/authenticator_web_authn_stage_request_spec.rb +12 -0
- data/spec/models/authenticator_web_authn_stage_spec.rb +12 -0
- data/spec/models/{flow_import_result_spec.rb → blueprint_import_result_spec.rb} +6 -6
- data/spec/models/brand_request_spec.rb +6 -0
- data/spec/models/brand_spec.rb +6 -0
- data/spec/models/{notification_transport_mode_enum_spec.rb → certificate_key_pair_key_type_enum_spec.rb} +6 -6
- data/spec/models/{consent_stage_mode_enum_spec.rb → consent_mode_enum_spec.rb} +6 -6
- data/spec/models/current_brand_flags_spec.rb +2 -2
- data/spec/models/current_brand_spec.rb +6 -0
- data/spec/models/event_matcher_policy_request_spec.rb +6 -0
- data/spec/models/event_matcher_policy_spec.rb +6 -0
- data/spec/models/event_stats_spec.rb +36 -0
- data/spec/models/force_binding_enum_spec.rb +24 -0
- data/spec/models/format_enum_spec.rb +24 -0
- data/spec/models/{detailed_country_field_spec.rb → geo_ip_policy_countries_obj_inner_spec.rb} +6 -6
- data/spec/models/google_chrome_connector_request_spec.rb +48 -0
- data/spec/models/google_chrome_connector_spec.rb +78 -0
- data/spec/models/grant_types_enum_spec.rb +24 -0
- data/spec/models/group_kerberos_source_connection_request_spec.rb +6 -0
- data/spec/models/group_ldap_source_connection_request_spec.rb +6 -0
- data/spec/models/group_ldap_source_connection_spec.rb +6 -0
- data/spec/models/group_o_auth_source_connection_request_spec.rb +6 -0
- data/spec/models/group_plex_source_connection_request_spec.rb +6 -0
- data/spec/models/group_saml_source_connection_request_spec.rb +6 -0
- data/spec/models/group_source_connection_request_spec.rb +6 -0
- data/spec/models/group_telegram_source_connection_request_spec.rb +6 -0
- data/spec/models/invitation_send_email_request_spec.rb +48 -0
- data/spec/models/lang_enum_spec.rb +24 -0
- data/spec/models/lifecycle_iteration_spec.rb +2 -14
- data/spec/models/logout_url_spec.rb +60 -0
- data/spec/models/native_logout_challenge_spec.rb +13 -7
- data/spec/models/notification_transport_request_spec.rb +6 -0
- data/spec/models/notification_transport_spec.rb +6 -0
- data/spec/models/o_auth2_provider_request_spec.rb +6 -0
- data/spec/models/o_auth2_provider_spec.rb +6 -0
- data/spec/models/paginated_account_lockdown_stage_list_spec.rb +42 -0
- data/spec/models/paginated_apple_independent_secure_enclave_list_spec.rb +42 -0
- data/spec/models/paginated_extra_role_object_permission_list_spec.rb +6 -0
- data/spec/models/paginated_google_chrome_connector_list_spec.rb +42 -0
- data/spec/models/patched_account_lockdown_stage_request_spec.rb +60 -0
- data/spec/models/patched_apple_independent_secure_enclave_request_spec.rb +54 -0
- data/spec/models/patched_application_request_spec.rb +6 -0
- data/spec/models/patched_authenticator_validate_stage_request_spec.rb +30 -0
- data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +12 -0
- data/spec/models/patched_brand_request_spec.rb +6 -0
- data/spec/models/patched_event_matcher_policy_request_spec.rb +6 -0
- data/spec/models/patched_google_chrome_connector_request_spec.rb +48 -0
- data/spec/models/patched_group_kerberos_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_ldap_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_o_auth_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_plex_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_saml_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_telegram_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_notification_transport_request_spec.rb +6 -0
- data/spec/models/patched_o_auth2_provider_request_spec.rb +6 -0
- data/spec/models/patched_saml_provider_request_spec.rb +7 -1
- data/spec/models/patched_saml_source_request_spec.rb +6 -0
- data/spec/models/patched_settings_request_flags_spec.rb +2 -2
- data/spec/models/patched_ssf_provider_request_spec.rb +6 -0
- data/spec/models/patched_user_kerberos_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_ldap_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_o_auth_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_plex_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_saml_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_telegram_source_connection_request_spec.rb +6 -0
- data/spec/models/redirect_uri_request_spec.rb +6 -0
- data/spec/models/redirect_uri_spec.rb +6 -0
- data/spec/models/redirect_uri_type_enum_spec.rb +24 -0
- data/spec/models/related_rule_spec.rb +54 -0
- data/spec/models/saml_provider_request_spec.rb +7 -1
- data/spec/models/saml_provider_spec.rb +25 -1
- data/spec/models/saml_source_request_spec.rb +6 -0
- data/spec/models/saml_source_spec.rb +6 -0
- data/spec/models/ssf_provider_request_spec.rb +6 -0
- data/spec/models/ssf_provider_spec.rb +12 -0
- data/spec/models/ssf_stream_spec.rb +6 -0
- data/spec/models/ssf_stream_status_enum_spec.rb +24 -0
- data/spec/models/{task_state_enum_spec.rb → task_status_enum_spec.rb} +6 -6
- data/spec/models/transport_mode_enum_spec.rb +24 -0
- data/spec/models/usage_enum_spec.rb +24 -0
- data/spec/models/user_account_lockdown_request_spec.rb +30 -0
- data/spec/models/user_kerberos_source_connection_request_spec.rb +6 -0
- data/spec/models/user_ldap_source_connection_request_spec.rb +6 -0
- data/spec/models/user_ldap_source_connection_spec.rb +6 -0
- data/spec/models/user_o_auth_source_connection_request_spec.rb +6 -0
- data/spec/models/user_password_hash_set_request_spec.rb +30 -0
- data/spec/models/user_plex_source_connection_request_spec.rb +6 -0
- data/spec/models/user_saml_source_connection_request_spec.rb +6 -0
- data/spec/models/user_source_connection_request_spec.rb +6 -0
- data/spec/models/user_telegram_source_connection_request_spec.rb +6 -0
- data/spec/models/web_authn_hint_enum_spec.rb +24 -0
- data/spec/zeitwerk_spec.rb +34 -0
- metadata +113 -32
- data/spec/models/resident_key_requirement_enum_spec.rb +0 -24
|
@@ -10,6 +10,8 @@ require 'time'
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
# User source connection
|
|
12
12
|
class PatchedUserSourceConnectionRequest < ApiModelBase
|
|
13
|
+
attr_accessor :user
|
|
14
|
+
|
|
13
15
|
attr_accessor :source
|
|
14
16
|
|
|
15
17
|
attr_accessor :identifier
|
|
@@ -17,6 +19,7 @@ module Authentik::Api
|
|
|
17
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
20
|
def self.attribute_map
|
|
19
21
|
{
|
|
22
|
+
:'user' => :'user',
|
|
20
23
|
:'source' => :'source',
|
|
21
24
|
:'identifier' => :'identifier'
|
|
22
25
|
}
|
|
@@ -35,6 +38,7 @@ module Authentik::Api
|
|
|
35
38
|
# Attribute type mapping.
|
|
36
39
|
def self.openapi_types
|
|
37
40
|
{
|
|
41
|
+
:'user' => :'Integer',
|
|
38
42
|
:'source' => :'String',
|
|
39
43
|
:'identifier' => :'String'
|
|
40
44
|
}
|
|
@@ -62,6 +66,10 @@ module Authentik::Api
|
|
|
62
66
|
h[k.to_sym] = v
|
|
63
67
|
}
|
|
64
68
|
|
|
69
|
+
if attributes.key?(:'user')
|
|
70
|
+
self.user = attributes[:'user']
|
|
71
|
+
end
|
|
72
|
+
|
|
65
73
|
if attributes.key?(:'source')
|
|
66
74
|
self.source = attributes[:'source']
|
|
67
75
|
end
|
|
@@ -110,6 +118,7 @@ module Authentik::Api
|
|
|
110
118
|
def ==(o)
|
|
111
119
|
return true if self.equal?(o)
|
|
112
120
|
self.class == o.class &&
|
|
121
|
+
user == o.user &&
|
|
113
122
|
source == o.source &&
|
|
114
123
|
identifier == o.identifier
|
|
115
124
|
end
|
|
@@ -123,7 +132,7 @@ module Authentik::Api
|
|
|
123
132
|
# Calculates hash code according to all attributes.
|
|
124
133
|
# @return [Integer] Hash code
|
|
125
134
|
def hash
|
|
126
|
-
[source, identifier].hash
|
|
135
|
+
[user, source, identifier].hash
|
|
127
136
|
end
|
|
128
137
|
|
|
129
138
|
# Builds the object from hash
|
|
@@ -10,6 +10,8 @@ require 'time'
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
# User source connection
|
|
12
12
|
class PatchedUserTelegramSourceConnectionRequest < ApiModelBase
|
|
13
|
+
attr_accessor :user
|
|
14
|
+
|
|
13
15
|
attr_accessor :source
|
|
14
16
|
|
|
15
17
|
attr_accessor :identifier
|
|
@@ -17,6 +19,7 @@ module Authentik::Api
|
|
|
17
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
20
|
def self.attribute_map
|
|
19
21
|
{
|
|
22
|
+
:'user' => :'user',
|
|
20
23
|
:'source' => :'source',
|
|
21
24
|
:'identifier' => :'identifier'
|
|
22
25
|
}
|
|
@@ -35,6 +38,7 @@ module Authentik::Api
|
|
|
35
38
|
# Attribute type mapping.
|
|
36
39
|
def self.openapi_types
|
|
37
40
|
{
|
|
41
|
+
:'user' => :'Integer',
|
|
38
42
|
:'source' => :'String',
|
|
39
43
|
:'identifier' => :'String'
|
|
40
44
|
}
|
|
@@ -62,6 +66,10 @@ module Authentik::Api
|
|
|
62
66
|
h[k.to_sym] = v
|
|
63
67
|
}
|
|
64
68
|
|
|
69
|
+
if attributes.key?(:'user')
|
|
70
|
+
self.user = attributes[:'user']
|
|
71
|
+
end
|
|
72
|
+
|
|
65
73
|
if attributes.key?(:'source')
|
|
66
74
|
self.source = attributes[:'source']
|
|
67
75
|
end
|
|
@@ -110,6 +118,7 @@ module Authentik::Api
|
|
|
110
118
|
def ==(o)
|
|
111
119
|
return true if self.equal?(o)
|
|
112
120
|
self.class == o.class &&
|
|
121
|
+
user == o.user &&
|
|
113
122
|
source == o.source &&
|
|
114
123
|
identifier == o.identifier
|
|
115
124
|
end
|
|
@@ -123,7 +132,7 @@ module Authentik::Api
|
|
|
123
132
|
# Calculates hash code according to all attributes.
|
|
124
133
|
# @return [Integer] Hash code
|
|
125
134
|
def hash
|
|
126
|
-
[source, identifier].hash
|
|
135
|
+
[user, source, identifier].hash
|
|
127
136
|
end
|
|
128
137
|
|
|
129
138
|
# Builds the object from hash
|
|
@@ -26,10 +26,13 @@ module Authentik::Api
|
|
|
26
26
|
SEPARATOR = "separator".freeze
|
|
27
27
|
HIDDEN = "hidden".freeze
|
|
28
28
|
STATIC = "static".freeze
|
|
29
|
+
ALERT_INFO = "alert_info".freeze
|
|
30
|
+
ALERT_WARNING = "alert_warning".freeze
|
|
31
|
+
ALERT_DANGER = "alert_danger".freeze
|
|
29
32
|
AK_LOCALE = "ak-locale".freeze
|
|
30
33
|
|
|
31
34
|
def self.all_vars
|
|
32
|
-
@all_vars ||= [TEXT, TEXT_AREA, TEXT_READ_ONLY, TEXT_AREA_READ_ONLY, USERNAME, EMAIL, PASSWORD, NUMBER, CHECKBOX, RADIO_BUTTON_GROUP, DROPDOWN, DATE, DATE_TIME, FILE, SEPARATOR, HIDDEN, STATIC, AK_LOCALE].freeze
|
|
35
|
+
@all_vars ||= [TEXT, TEXT_AREA, TEXT_READ_ONLY, TEXT_AREA_READ_ONLY, USERNAME, EMAIL, PASSWORD, NUMBER, CHECKBOX, RADIO_BUTTON_GROUP, DROPDOWN, DATE, DATE_TIME, FILE, SEPARATOR, HIDDEN, STATIC, ALERT_INFO, ALERT_WARNING, ALERT_DANGER, AK_LOCALE].freeze
|
|
33
36
|
end
|
|
34
37
|
|
|
35
38
|
# Builds the enum from string
|
|
@@ -14,6 +14,8 @@ module Authentik::Api
|
|
|
14
14
|
|
|
15
15
|
attr_accessor :url
|
|
16
16
|
|
|
17
|
+
attr_accessor :redirect_uri_type
|
|
18
|
+
|
|
17
19
|
class EnumAttributeValidator
|
|
18
20
|
attr_reader :datatype
|
|
19
21
|
attr_reader :allowable_values
|
|
@@ -40,7 +42,8 @@ module Authentik::Api
|
|
|
40
42
|
def self.attribute_map
|
|
41
43
|
{
|
|
42
44
|
:'matching_mode' => :'matching_mode',
|
|
43
|
-
:'url' => :'url'
|
|
45
|
+
:'url' => :'url',
|
|
46
|
+
:'redirect_uri_type' => :'redirect_uri_type'
|
|
44
47
|
}
|
|
45
48
|
end
|
|
46
49
|
|
|
@@ -58,7 +61,8 @@ module Authentik::Api
|
|
|
58
61
|
def self.openapi_types
|
|
59
62
|
{
|
|
60
63
|
:'matching_mode' => :'MatchingModeEnum',
|
|
61
|
-
:'url' => :'String'
|
|
64
|
+
:'url' => :'String',
|
|
65
|
+
:'redirect_uri_type' => :'RedirectURITypeEnum'
|
|
62
66
|
}
|
|
63
67
|
end
|
|
64
68
|
|
|
@@ -95,6 +99,10 @@ module Authentik::Api
|
|
|
95
99
|
else
|
|
96
100
|
self.url = nil
|
|
97
101
|
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'redirect_uri_type')
|
|
104
|
+
self.redirect_uri_type = attributes[:'redirect_uri_type']
|
|
105
|
+
end
|
|
98
106
|
end
|
|
99
107
|
|
|
100
108
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -148,7 +156,8 @@ module Authentik::Api
|
|
|
148
156
|
return true if self.equal?(o)
|
|
149
157
|
self.class == o.class &&
|
|
150
158
|
matching_mode == o.matching_mode &&
|
|
151
|
-
url == o.url
|
|
159
|
+
url == o.url &&
|
|
160
|
+
redirect_uri_type == o.redirect_uri_type
|
|
152
161
|
end
|
|
153
162
|
|
|
154
163
|
# @see the `==` method
|
|
@@ -160,7 +169,7 @@ module Authentik::Api
|
|
|
160
169
|
# Calculates hash code according to all attributes.
|
|
161
170
|
# @return [Integer] Hash code
|
|
162
171
|
def hash
|
|
163
|
-
[matching_mode, url].hash
|
|
172
|
+
[matching_mode, url, redirect_uri_type].hash
|
|
164
173
|
end
|
|
165
174
|
|
|
166
175
|
# Builds the object from hash
|
|
@@ -14,6 +14,8 @@ module Authentik::Api
|
|
|
14
14
|
|
|
15
15
|
attr_accessor :url
|
|
16
16
|
|
|
17
|
+
attr_accessor :redirect_uri_type
|
|
18
|
+
|
|
17
19
|
class EnumAttributeValidator
|
|
18
20
|
attr_reader :datatype
|
|
19
21
|
attr_reader :allowable_values
|
|
@@ -40,7 +42,8 @@ module Authentik::Api
|
|
|
40
42
|
def self.attribute_map
|
|
41
43
|
{
|
|
42
44
|
:'matching_mode' => :'matching_mode',
|
|
43
|
-
:'url' => :'url'
|
|
45
|
+
:'url' => :'url',
|
|
46
|
+
:'redirect_uri_type' => :'redirect_uri_type'
|
|
44
47
|
}
|
|
45
48
|
end
|
|
46
49
|
|
|
@@ -58,7 +61,8 @@ module Authentik::Api
|
|
|
58
61
|
def self.openapi_types
|
|
59
62
|
{
|
|
60
63
|
:'matching_mode' => :'MatchingModeEnum',
|
|
61
|
-
:'url' => :'String'
|
|
64
|
+
:'url' => :'String',
|
|
65
|
+
:'redirect_uri_type' => :'RedirectURITypeEnum'
|
|
62
66
|
}
|
|
63
67
|
end
|
|
64
68
|
|
|
@@ -95,6 +99,10 @@ module Authentik::Api
|
|
|
95
99
|
else
|
|
96
100
|
self.url = nil
|
|
97
101
|
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'redirect_uri_type')
|
|
104
|
+
self.redirect_uri_type = attributes[:'redirect_uri_type']
|
|
105
|
+
end
|
|
98
106
|
end
|
|
99
107
|
|
|
100
108
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -157,7 +165,8 @@ module Authentik::Api
|
|
|
157
165
|
return true if self.equal?(o)
|
|
158
166
|
self.class == o.class &&
|
|
159
167
|
matching_mode == o.matching_mode &&
|
|
160
|
-
url == o.url
|
|
168
|
+
url == o.url &&
|
|
169
|
+
redirect_uri_type == o.redirect_uri_type
|
|
161
170
|
end
|
|
162
171
|
|
|
163
172
|
# @see the `==` method
|
|
@@ -169,7 +178,7 @@ module Authentik::Api
|
|
|
169
178
|
# Calculates hash code according to all attributes.
|
|
170
179
|
# @return [Integer] Hash code
|
|
171
180
|
def hash
|
|
172
|
-
[matching_mode, url].hash
|
|
181
|
+
[matching_mode, url, redirect_uri_type].hash
|
|
173
182
|
end
|
|
174
183
|
|
|
175
184
|
# Builds the object from hash
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'date'
|
|
8
|
+
require 'time'
|
|
9
|
+
|
|
10
|
+
module Authentik::Api
|
|
11
|
+
class RedirectURITypeEnum
|
|
12
|
+
AUTHORIZATION = "authorization".freeze
|
|
13
|
+
LOGOUT = "logout".freeze
|
|
14
|
+
|
|
15
|
+
def self.all_vars
|
|
16
|
+
@all_vars ||= [AUTHORIZATION, LOGOUT].freeze
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# Builds the enum from string
|
|
20
|
+
# @param [String] The enum value in the form of the string
|
|
21
|
+
# @return [String] The enum value
|
|
22
|
+
def self.build_from_hash(value)
|
|
23
|
+
new.build_from_hash(value)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Builds the enum from string
|
|
27
|
+
# @param [String] The enum value in the form of the string
|
|
28
|
+
# @return [String] The enum value
|
|
29
|
+
def build_from_hash(value)
|
|
30
|
+
return value if RedirectURITypeEnum.all_vars.include?(value)
|
|
31
|
+
raise "Invalid ENUM value #{value} for class #RedirectURITypeEnum"
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'date'
|
|
8
|
+
require 'time'
|
|
9
|
+
|
|
10
|
+
module Authentik::Api
|
|
11
|
+
# Mixin to validate that a valid enterprise license exists before allowing to save the object
|
|
12
|
+
class RelatedRule < ApiModelBase
|
|
13
|
+
attr_accessor :id
|
|
14
|
+
|
|
15
|
+
attr_accessor :name
|
|
16
|
+
|
|
17
|
+
attr_accessor :reviewer_groups
|
|
18
|
+
|
|
19
|
+
attr_accessor :min_reviewers
|
|
20
|
+
|
|
21
|
+
attr_accessor :reviewers
|
|
22
|
+
|
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
|
+
def self.attribute_map
|
|
25
|
+
{
|
|
26
|
+
:'id' => :'id',
|
|
27
|
+
:'name' => :'name',
|
|
28
|
+
:'reviewer_groups' => :'reviewer_groups',
|
|
29
|
+
:'min_reviewers' => :'min_reviewers',
|
|
30
|
+
:'reviewers' => :'reviewers'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Returns attribute mapping this model knows about
|
|
35
|
+
def self.acceptable_attribute_map
|
|
36
|
+
attribute_map
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Returns all the JSON keys this model knows about
|
|
40
|
+
def self.acceptable_attributes
|
|
41
|
+
acceptable_attribute_map.values
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Attribute type mapping.
|
|
45
|
+
def self.openapi_types
|
|
46
|
+
{
|
|
47
|
+
:'id' => :'String',
|
|
48
|
+
:'name' => :'String',
|
|
49
|
+
:'reviewer_groups' => :'Array<ReviewerGroup>',
|
|
50
|
+
:'min_reviewers' => :'Integer',
|
|
51
|
+
:'reviewers' => :'Array<ReviewerUser>'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# List of attributes with nullable: true
|
|
56
|
+
def self.openapi_nullable
|
|
57
|
+
Set.new([
|
|
58
|
+
])
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Initializes the object
|
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::RelatedRule` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::RelatedRule`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
73
|
+
end
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'id')
|
|
78
|
+
self.id = attributes[:'id']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'name')
|
|
82
|
+
self.name = attributes[:'name']
|
|
83
|
+
else
|
|
84
|
+
self.name = nil
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'reviewer_groups')
|
|
88
|
+
if (value = attributes[:'reviewer_groups']).is_a?(Array)
|
|
89
|
+
self.reviewer_groups = value
|
|
90
|
+
end
|
|
91
|
+
else
|
|
92
|
+
self.reviewer_groups = nil
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'min_reviewers')
|
|
96
|
+
self.min_reviewers = attributes[:'min_reviewers']
|
|
97
|
+
else
|
|
98
|
+
self.min_reviewers = nil
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'reviewers')
|
|
102
|
+
if (value = attributes[:'reviewers']).is_a?(Array)
|
|
103
|
+
self.reviewers = value
|
|
104
|
+
end
|
|
105
|
+
else
|
|
106
|
+
self.reviewers = nil
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
111
|
+
# @return Array for valid properties with the reasons
|
|
112
|
+
def list_invalid_properties
|
|
113
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
114
|
+
invalid_properties = Array.new
|
|
115
|
+
if @name.nil?
|
|
116
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if @reviewer_groups.nil?
|
|
120
|
+
invalid_properties.push('invalid value for "reviewer_groups", reviewer_groups cannot be nil.')
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if @min_reviewers.nil?
|
|
124
|
+
invalid_properties.push('invalid value for "min_reviewers", min_reviewers cannot be nil.')
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if @reviewers.nil?
|
|
128
|
+
invalid_properties.push('invalid value for "reviewers", reviewers cannot be nil.')
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
invalid_properties
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Check to see if the all the properties in the model are valid
|
|
135
|
+
# @return true if the model is valid
|
|
136
|
+
def valid?
|
|
137
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
138
|
+
return false if @name.nil?
|
|
139
|
+
return false if @reviewer_groups.nil?
|
|
140
|
+
return false if @min_reviewers.nil?
|
|
141
|
+
return false if @reviewers.nil?
|
|
142
|
+
true
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Custom attribute writer method with validation
|
|
146
|
+
# @param [Object] name Value to be assigned
|
|
147
|
+
def name=(name)
|
|
148
|
+
if name.nil?
|
|
149
|
+
fail ArgumentError, 'name cannot be nil'
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
@name = name
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Custom attribute writer method with validation
|
|
156
|
+
# @param [Object] reviewer_groups Value to be assigned
|
|
157
|
+
def reviewer_groups=(reviewer_groups)
|
|
158
|
+
if reviewer_groups.nil?
|
|
159
|
+
fail ArgumentError, 'reviewer_groups cannot be nil'
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
@reviewer_groups = reviewer_groups
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Custom attribute writer method with validation
|
|
166
|
+
# @param [Object] min_reviewers Value to be assigned
|
|
167
|
+
def min_reviewers=(min_reviewers)
|
|
168
|
+
if min_reviewers.nil?
|
|
169
|
+
fail ArgumentError, 'min_reviewers cannot be nil'
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
@min_reviewers = min_reviewers
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Custom attribute writer method with validation
|
|
176
|
+
# @param [Object] reviewers Value to be assigned
|
|
177
|
+
def reviewers=(reviewers)
|
|
178
|
+
if reviewers.nil?
|
|
179
|
+
fail ArgumentError, 'reviewers cannot be nil'
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
@reviewers = reviewers
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Checks equality by comparing each attribute.
|
|
186
|
+
# @param [Object] Object to be compared
|
|
187
|
+
def ==(o)
|
|
188
|
+
return true if self.equal?(o)
|
|
189
|
+
self.class == o.class &&
|
|
190
|
+
id == o.id &&
|
|
191
|
+
name == o.name &&
|
|
192
|
+
reviewer_groups == o.reviewer_groups &&
|
|
193
|
+
min_reviewers == o.min_reviewers &&
|
|
194
|
+
reviewers == o.reviewers
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# @see the `==` method
|
|
198
|
+
# @param [Object] Object to be compared
|
|
199
|
+
def eql?(o)
|
|
200
|
+
self == o
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Calculates hash code according to all attributes.
|
|
204
|
+
# @return [Integer] Hash code
|
|
205
|
+
def hash
|
|
206
|
+
[id, name, reviewer_groups, min_reviewers, reviewers].hash
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Builds the object from hash
|
|
210
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
211
|
+
# @return [Object] Returns the model itself
|
|
212
|
+
def self.build_from_hash(attributes)
|
|
213
|
+
return nil unless attributes.is_a?(Hash)
|
|
214
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
215
|
+
transformed_hash = {}
|
|
216
|
+
openapi_types.each_pair do |key, type|
|
|
217
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
218
|
+
transformed_hash["#{key}"] = nil
|
|
219
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
220
|
+
# check to ensure the input is an array given that the attribute
|
|
221
|
+
# is documented as an array but the input is not
|
|
222
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
223
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
224
|
+
end
|
|
225
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
226
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
new(transformed_hash)
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Returns the object in the form of hash
|
|
233
|
+
# @return [Hash] Returns the object in the form of hash
|
|
234
|
+
def to_hash
|
|
235
|
+
hash = {}
|
|
236
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
237
|
+
value = self.send(attr)
|
|
238
|
+
if value.nil?
|
|
239
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
240
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
hash[param] = _to_hash(value)
|
|
244
|
+
end
|
|
245
|
+
hash
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
end
|