class Maestrano::SSO::BaseMembership
Attributes
group_uid[R]
role[R]
user_uid[R]
Public Class Methods
new(saml_response)
click to toggle source
Initializer @param Maestrano::SAML::Response
# File lib/maestrano/sso/base_membership.rb, line 8 def initialize(saml_response) att = saml_response.attributes @user_uid = att['uid'] @group_uid = att['group_uid'] @role = att['group_role'] end
Public Instance Methods
to_hash()
click to toggle source
# File lib/maestrano/sso/base_membership.rb, line 15 def to_hash { provider: 'maestrano', group_uid: self.group_uid, user_uid: self.user_uid, role: self.role } end