Class: Files::SsoStrategy
- Inherits:
-
Object
- Object
- Files::SsoStrategy
- Defined in:
- lib/files.com/models/sso_strategy.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
- .all(params = {}, options = {}) ⇒ Object
-
.find(id, params = {}, options = {}) ⇒ Object
Parameters: id (required) - int64 - Sso Strategy ID.
- .get(id, params = {}, options = {}) ⇒ Object
-
.list(params = {}, options = {}) ⇒ Object
Parameters: page - int64 - Current page number.
Instance Method Summary collapse
-
#deprovision_groups ⇒ Object
boolean - Auto-deprovision group membership based on group memberships on the SSO side?.
-
#deprovision_users ⇒ Object
boolean - Auto-deprovision users?.
-
#enabled ⇒ Object
boolean - Is strategy enabled?.
-
#id ⇒ Object
int64 - ID.
-
#initialize(attributes = {}, options = {}) ⇒ SsoStrategy
constructor
A new instance of SsoStrategy.
-
#label ⇒ Object
string - Custom label for the SSO provider on the login page.
-
#ldap_base_dn ⇒ Object
string - Base DN for looking up users in LDAP server.
-
#ldap_domain ⇒ Object
string - Domain name that will be appended to LDAP usernames.
-
#ldap_host ⇒ Object
string - LDAP host.
-
#ldap_host_2 ⇒ Object
string - LDAP backup host.
-
#ldap_host_3 ⇒ Object
string - LDAP backup host.
-
#ldap_port ⇒ Object
int64 - LDAP port.
-
#ldap_secure ⇒ Object
boolean - Use secure LDAP?.
-
#ldap_username ⇒ Object
string - Username for signing in to LDAP server.
-
#ldap_username_field ⇒ Object
string - LDAP username field.
-
#logo_url ⇒ Object
string - URL holding a custom logo for the SSO provider on the login page.
-
#protocol ⇒ Object
array - SSO Protocol.
-
#provider ⇒ Object
string - Provider name.
-
#provision_attachments_permission ⇒ Object
boolean - Auto-provisioned users get Sharing permission?.
-
#provision_dav_permission ⇒ Object
boolean - Auto-provisioned users get WebDAV permission?.
-
#provision_ftp_permission ⇒ Object
boolean - Auto-provisioned users get FTP permission?.
-
#provision_group_default ⇒ Object
string - Comma-separated list of group names for groups to automatically add all auto-provisioned users to.
-
#provision_group_exclusion ⇒ Object
string - Comma-separated list of group names for groups (with optional wildcards) that will be excluded from auto-provisioning.
-
#provision_group_inclusion ⇒ Object
string - Comma-separated list of group names for groups (with optional wildcards) that will be auto-provisioned.
-
#provision_group_required ⇒ Object
string - Comma or newline separated list of group names (with optional wildcards) to require membership for user provisioning.
-
#provision_groups ⇒ Object
boolean - Auto-provision group membership based on group memberships on the SSO side?.
-
#provision_sftp_permission ⇒ Object
boolean - Auto-provisioned users get SFTP permission?.
-
#provision_time_zone ⇒ Object
string - Default time zone for auto provisioned users.
-
#provision_users ⇒ Object
boolean - Auto-provision users?.
-
#saml_provider_cert_fingerprint ⇒ Object
string - Identity provider sha256 cert fingerprint if saml_provider_metadata_url is not available.
-
#saml_provider_issuer_url ⇒ Object
string - Identity provider issuer url.
-
#saml_provider_metadata_url ⇒ Object
string - Metadata URL for the SAML identity provider.
-
#saml_provider_slo_target_url ⇒ Object
string - Identity provider SLO endpoint.
-
#saml_provider_sso_target_url ⇒ Object
string - Identity provider SSO endpoint if saml_provider_metadata_url is not available.
-
#scim_authentication_method ⇒ Object
string - SCIM authentication type.
-
#scim_username ⇒ Object
string - SCIM username.
-
#subdomain ⇒ Object
string - Subdomain.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ SsoStrategy
Returns a new instance of SsoStrategy.
7 8 9 10 |
# File 'lib/files.com/models/sso_strategy.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/sso_strategy.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/sso_strategy.rb', line 5 def @options end |
Class Method Details
.all(params = {}, options = {}) ⇒ Object
207 208 209 |
# File 'lib/files.com/models/sso_strategy.rb', line 207 def self.all(params = {}, = {}) list(params, ) end |
.find(id, params = {}, options = {}) ⇒ Object
Parameters:
id (required) - int64 - Sso Strategy ID.
213 214 215 216 217 218 219 220 221 |
# File 'lib/files.com/models/sso_strategy.rb', line 213 def self.find(id, params = {}, = {}) params ||= {} params[:id] = id raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer) raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id) response, = Api.send_request("/sso_strategies/#{params[:id]}", :get, params, ) SsoStrategy.new(response.data, ) end |
.get(id, params = {}, options = {}) ⇒ Object
223 224 225 |
# File 'lib/files.com/models/sso_strategy.rb', line 223 def self.get(id, params = {}, = {}) find(id, params, ) end |
.list(params = {}, options = {}) ⇒ Object
Parameters:
page - int64 - Current page number.
per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
196 197 198 199 200 201 202 203 204 205 |
# File 'lib/files.com/models/sso_strategy.rb', line 196 def self.list(params = {}, = {}) raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer) raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer) raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String) response, = Api.send_request("/sso_strategies", :get, params, ) response.data.map do |entity_data| SsoStrategy.new(entity_data, ) end end |
Instance Method Details
#deprovision_groups ⇒ Object
boolean - Auto-deprovision group membership based on group memberships on the SSO side?
93 94 95 |
# File 'lib/files.com/models/sso_strategy.rb', line 93 def deprovision_groups @attributes[:deprovision_groups] end |
#deprovision_users ⇒ Object
boolean - Auto-deprovision users?
88 89 90 |
# File 'lib/files.com/models/sso_strategy.rb', line 88 def deprovision_users @attributes[:deprovision_users] end |
#enabled ⇒ Object
boolean - Is strategy enabled?
153 154 155 |
# File 'lib/files.com/models/sso_strategy.rb', line 153 def enabled @attributes[:enabled] end |
#id ⇒ Object
int64 - ID
33 34 35 |
# File 'lib/files.com/models/sso_strategy.rb', line 33 def id @attributes[:id] end |
#label ⇒ Object
string - Custom label for the SSO provider on the login page.
23 24 25 |
# File 'lib/files.com/models/sso_strategy.rb', line 23 def label @attributes[:label] end |
#ldap_base_dn ⇒ Object
string - Base DN for looking up users in LDAP server
143 144 145 |
# File 'lib/files.com/models/sso_strategy.rb', line 143 def ldap_base_dn @attributes[:ldap_base_dn] end |
#ldap_domain ⇒ Object
string - Domain name that will be appended to LDAP usernames
148 149 150 |
# File 'lib/files.com/models/sso_strategy.rb', line 148 def ldap_domain @attributes[:ldap_domain] end |
#ldap_host ⇒ Object
string - LDAP host
158 159 160 |
# File 'lib/files.com/models/sso_strategy.rb', line 158 def ldap_host @attributes[:ldap_host] end |
#ldap_host_2 ⇒ Object
string - LDAP backup host
163 164 165 |
# File 'lib/files.com/models/sso_strategy.rb', line 163 def ldap_host_2 @attributes[:ldap_host_2] end |
#ldap_host_3 ⇒ Object
string - LDAP backup host
168 169 170 |
# File 'lib/files.com/models/sso_strategy.rb', line 168 def ldap_host_3 @attributes[:ldap_host_3] end |
#ldap_port ⇒ Object
int64 - LDAP port
173 174 175 |
# File 'lib/files.com/models/sso_strategy.rb', line 173 def ldap_port @attributes[:ldap_port] end |
#ldap_secure ⇒ Object
boolean - Use secure LDAP?
178 179 180 |
# File 'lib/files.com/models/sso_strategy.rb', line 178 def ldap_secure @attributes[:ldap_secure] end |
#ldap_username ⇒ Object
string - Username for signing in to LDAP server.
183 184 185 |
# File 'lib/files.com/models/sso_strategy.rb', line 183 def ldap_username @attributes[:ldap_username] end |
#ldap_username_field ⇒ Object
string - LDAP username field
188 189 190 |
# File 'lib/files.com/models/sso_strategy.rb', line 188 def ldap_username_field @attributes[:ldap_username_field] end |
#logo_url ⇒ Object
string - URL holding a custom logo for the SSO provider on the login page.
28 29 30 |
# File 'lib/files.com/models/sso_strategy.rb', line 28 def logo_url @attributes[:logo_url] end |
#protocol ⇒ Object
array - SSO Protocol
13 14 15 |
# File 'lib/files.com/models/sso_strategy.rb', line 13 def protocol @attributes[:protocol] end |
#provider ⇒ Object
string - Provider name
18 19 20 |
# File 'lib/files.com/models/sso_strategy.rb', line 18 def provider @attributes[:provider] end |
#provision_attachments_permission ⇒ Object
boolean - Auto-provisioned users get Sharing permission?
118 119 120 |
# File 'lib/files.com/models/sso_strategy.rb', line 118 def @attributes[:provision_attachments_permission] end |
#provision_dav_permission ⇒ Object
boolean - Auto-provisioned users get WebDAV permission?
123 124 125 |
# File 'lib/files.com/models/sso_strategy.rb', line 123 def @attributes[:provision_dav_permission] end |
#provision_ftp_permission ⇒ Object
boolean - Auto-provisioned users get FTP permission?
128 129 130 |
# File 'lib/files.com/models/sso_strategy.rb', line 128 def @attributes[:provision_ftp_permission] end |
#provision_group_default ⇒ Object
string - Comma-separated list of group names for groups to automatically add all auto-provisioned users to.
98 99 100 |
# File 'lib/files.com/models/sso_strategy.rb', line 98 def provision_group_default @attributes[:provision_group_default] end |
#provision_group_exclusion ⇒ Object
string - Comma-separated list of group names for groups (with optional wildcards) that will be excluded from auto-provisioning.
103 104 105 |
# File 'lib/files.com/models/sso_strategy.rb', line 103 def provision_group_exclusion @attributes[:provision_group_exclusion] end |
#provision_group_inclusion ⇒ Object
string - Comma-separated list of group names for groups (with optional wildcards) that will be auto-provisioned.
108 109 110 |
# File 'lib/files.com/models/sso_strategy.rb', line 108 def provision_group_inclusion @attributes[:provision_group_inclusion] end |
#provision_group_required ⇒ Object
string - Comma or newline separated list of group names (with optional wildcards) to require membership for user provisioning.
113 114 115 |
# File 'lib/files.com/models/sso_strategy.rb', line 113 def provision_group_required @attributes[:provision_group_required] end |
#provision_groups ⇒ Object
boolean - Auto-provision group membership based on group memberships on the SSO side?
83 84 85 |
# File 'lib/files.com/models/sso_strategy.rb', line 83 def provision_groups @attributes[:provision_groups] end |
#provision_sftp_permission ⇒ Object
boolean - Auto-provisioned users get SFTP permission?
133 134 135 |
# File 'lib/files.com/models/sso_strategy.rb', line 133 def @attributes[:provision_sftp_permission] end |
#provision_time_zone ⇒ Object
string - Default time zone for auto provisioned users.
138 139 140 |
# File 'lib/files.com/models/sso_strategy.rb', line 138 def provision_time_zone @attributes[:provision_time_zone] end |
#provision_users ⇒ Object
boolean - Auto-provision users?
78 79 80 |
# File 'lib/files.com/models/sso_strategy.rb', line 78 def provision_users @attributes[:provision_users] end |
#saml_provider_cert_fingerprint ⇒ Object
string - Identity provider sha256 cert fingerprint if saml_provider_metadata_url is not available.
38 39 40 |
# File 'lib/files.com/models/sso_strategy.rb', line 38 def saml_provider_cert_fingerprint @attributes[:saml_provider_cert_fingerprint] end |
#saml_provider_issuer_url ⇒ Object
string - Identity provider issuer url
43 44 45 |
# File 'lib/files.com/models/sso_strategy.rb', line 43 def saml_provider_issuer_url @attributes[:saml_provider_issuer_url] end |
#saml_provider_metadata_url ⇒ Object
string - Metadata URL for the SAML identity provider
48 49 50 |
# File 'lib/files.com/models/sso_strategy.rb', line 48 def @attributes[:saml_provider_metadata_url] end |
#saml_provider_slo_target_url ⇒ Object
string - Identity provider SLO endpoint
53 54 55 |
# File 'lib/files.com/models/sso_strategy.rb', line 53 def saml_provider_slo_target_url @attributes[:saml_provider_slo_target_url] end |
#saml_provider_sso_target_url ⇒ Object
string - Identity provider SSO endpoint if saml_provider_metadata_url is not available.
58 59 60 |
# File 'lib/files.com/models/sso_strategy.rb', line 58 def saml_provider_sso_target_url @attributes[:saml_provider_sso_target_url] end |
#scim_authentication_method ⇒ Object
string - SCIM authentication type.
63 64 65 |
# File 'lib/files.com/models/sso_strategy.rb', line 63 def scim_authentication_method @attributes[:scim_authentication_method] end |
#scim_username ⇒ Object
string - SCIM username.
68 69 70 |
# File 'lib/files.com/models/sso_strategy.rb', line 68 def scim_username @attributes[:scim_username] end |
#subdomain ⇒ Object
string - Subdomain
73 74 75 |
# File 'lib/files.com/models/sso_strategy.rb', line 73 def subdomain @attributes[:subdomain] end |