Sha256: 18a2db43e80723c501cf9fc5f4f91c7858dbabdab921d7690638d656a94fc207
Contents?: true
Size: 560 Bytes
Versions: 36
Compression:
Stored size: 560 Bytes
Contents
module Maestrano module SSO class BaseMembership attr_reader :user_uid,:group_uid,:role # Initializer # @param Maestrano::SAML::Response def initialize(saml_response) att = saml_response.attributes @user_uid = att['uid'] @group_uid = att['group_uid'] @role = att['group_role'] end def to_hash { provider: 'maestrano', group_uid: self.group_uid, user_uid: self.user_uid, role: self.role } end end end end
Version data entries
36 entries across 36 versions & 2 rubygems