See: https://github.com/omniauth/omniauth-saml
PlaceOS::Model::SamlAuthentication
Inherits PlaceOS::Model::Timestamps < PlaceOS::Model::ModelBase < PlaceOS::Model::Associations < Neuroplastic < PgORM::Base < PgORM::Validators < PgORM::Table < PgORM::Persistence < PgORM::Associations < ActiveModel::Callbacks < ActiveModel::Validation < ActiveModel::Model < DB::Mappable < DB::Serializable < YAML::Serializable < JSON::Serializable < Reference < Object
See: https://github.com/omniauth/omniauth-saml
Constants
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
macro level key => type
See: https://github.com/omniauth/omniauth-saml
Constructors
See: https://github.com/omniauth/omniauth-saml
Deserializes the given JSON in string_or_io into
an instance of self, assuming the JSON consists
of an JSON object with key root, and whose value is
the value to deserialize. Will not deserialise from
fields with mass_assign: false
class User < ActiveModel::Model
attribute name : String
attribute google_id : UUID, mass_assign: false
end
User.from_json(%({"main": {"name": "Jason", "google_id": "f6f70bfb-c882-446d-8758-7ce47db39620"}}), root: "main") # => #<User:0x103131b20 @name="Jason">
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Class methods
Returns all attribute keys.
Changefeed at row (if id passed) or whole table level.
Returns a ChangeFeed instance which can be used to invoke async callbacks via on or
use blocking Iterator via each method.
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Instance methods
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Generate code to apply default values
assertion_consumer_service_url getter
assertion_consumer_service_url setter
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
The URL at which the SAML assertion should be received (SSO Service => Engine URL)
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include assertion_consumer_service_url in the set of changed attributes, whether it has changed or not.
Assign to multiple attributes.
Assign to multiple attributes via HTTP::Params.
Assign to multiple attributes from a model object
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Assign each field from JSON if field exists in JSON and has changed in model
See: https://github.com/omniauth/omniauth-saml
Uses the YAML parser as JSON is valid YAML
attribute_service_name getter
attribute_service_name setter
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
Name for the attribute service (Defaults to Required attributes)
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include attribute_service_name in the set of changed attributes, whether it has changed or not.
attribute_statements getter
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
Used to map Attribute Names in a SAMLResponse to entries in the OmniAuth info hash
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include attribute_statements in the set of changed attributes, whether it has changed or not.
Returns a Hash of all attribute values
Returns a NamedTuple of all attribute values.
authority_id getter
authority_id setter
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
authority_id's default value
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include authority_id in the set of changed attributes, whether it has changed or not.
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Check if any attributes have changed.
Returns a Hash with all changed attributes.
Serialize the set of changed attributes to JSON.
Serialize the set of changed attributes to JSON.
See: https://github.com/omniauth/omniauth-saml
Serialize the set of changed attributes to YAML.
Serialize the set of changed attributes to YAML.
Reset changes for all attributes.
created_at getter
Setters
created_at setter
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
created_at's default value
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include created_at in the set of changed attributes, whether it has changed or not.
id getter
id setter
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
id's default value
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include id in the set of changed attributes, whether it has changed or not.
idp_cert getter
idp_cert setter
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
idp_cert_fingerprint getter
idp_cert_fingerprint setter
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
The SHA1 fingerprint of the certificate
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include idp_cert_fingerprint in the set of changed attributes, whether it has changed or not.
The identity provider's certificate in PEM format (this or fingerprint is required)
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include idp_cert in the set of changed attributes, whether it has changed or not.
idp_slo_target_url getter
idp_slo_target_url setter
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
The URL to which the single logout request and response should be sent
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include idp_slo_target_url in the set of changed attributes, whether it has changed or not.
idp_sso_target_url getter
idp_sso_target_url setter
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
The URL to which the authentication request should be sent (Engine => SSO Service)
See: https://github.com/omniauth/omniauth-saml
idp_sso_target_url_runtime_params getter
idp_sso_target_url_runtime_params setter
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
mapping of request params that exist during the request phase of OmniAuth that should to be sent to the IdP
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include idp_sso_target_url_runtime_params in the set of changed attributes, whether it has changed or not.
See: https://github.com/omniauth/omniauth-saml
Include idp_sso_target_url in the set of changed attributes, whether it has changed or not.
See: https://github.com/omniauth/omniauth-saml
issuer getter
issuer setter
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
The name of your application
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include issuer in the set of changed attributes, whether it has changed or not.
name getter
name setter
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
name_identifier_format getter
name_identifier_format setter
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
Describes the format of the username required by this application
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include name_identifier_format in the set of changed attributes, whether it has changed or not.
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include name in the set of changed attributes, whether it has changed or not.
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
request_attributes getter
request_attributes setter
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
Used to map Attribute Names in a SAMLResponse to entries in the OmniAuth info hash
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include request_attributes in the set of changed attributes, whether it has changed or not.
Reset each attribute to their previous values and clears all changes.
slo_default_relay_state getter
slo_default_relay_state setter
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
The value to use as default RelayState for single log outs
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include slo_default_relay_state in the set of changed attributes, whether it has changed or not.
See: https://github.com/omniauth/omniauth-saml
uid_attribute getter
uid_attribute setter
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
Attribute that uniquely identifies the user (If unset, the name identifier returned by the IdP is used.)
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include uid_attribute in the set of changed attributes, whether it has changed or not.
updated_at getter
updated_at setter
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
See: https://github.com/omniauth/omniauth-saml
Returns a Tuple of the previous and the current value of an instance variable if it has changed
See: https://github.com/omniauth/omniauth-saml
updated_at's default value
See: https://github.com/omniauth/omniauth-saml
See: https://github.com/omniauth/omniauth-saml
Include updated_at in the set of changed attributes, whether it has changed or not.
Validate that all non-nillable fields have values.