Sha256: d61b1a0e596054c93e792a00b0f895ba5843adb01d0ae9f700038d495f10da08
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true module Osso module Models # Base class for SAML Providers class IdentityProvider < ActiveRecord::Base NAME_FORMAT = 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress' belongs_to :enterprise_account belongs_to :oauth_client has_many :users def name service.titlecase # raise( # NoMethodError, # '#name must be defined on each provider specific subclass', # ) end def saml_options attributes.slice( 'domain', 'idp_cert', 'idp_sso_target_url', ).symbolize_keys end # def saml_options # raise( # NoMethodError, # '#saml_options must be defined on each provider specific subclass', # ) # end def assertion_consumer_service_url [ ENV.fetch('BASE_URL'), 'auth', 'saml', id, 'callback', ].join('/') end alias acs_url assertion_consumer_service_url end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
osso-0.0.3.7 | lib/osso/models/identity_provider.rb |
osso-0.0.3.6 | lib/osso/models/identity_provider.rb |