Sha256: e20b96eda4ac5f5a61b46bb83d4b760463ba89f182d7aa689f4fca1f346a269a

Contents?: true

Size: 425 Bytes

Versions: 3

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

module Osso
  module Models
    # Subclass for Azure / ADFS IDP instances
    class AzureSamlProvider < Models::IdentityProvider
      def name
        'Azure'
      end

      def saml_options
        attributes.slice(
          'domain',
          'idp_cert',
          'idp_sso_target_url',
        ).merge(
          issuer: "id:#{id}",
        ).symbolize_keys
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
osso-0.0.3.8 lib/osso/models/saml_providers/azure_saml_provider.rb
osso-0.0.3.7 lib/osso/models/saml_providers/azure_saml_provider.rb
osso-0.0.3.6 lib/osso/models/saml_providers/azure_saml_provider.rb