SmeeView.Aspects.AttributeConsumingService (SmeeView v0.1.0) View Source
Represents and processes <AttributeConsumingService> elements in entity metadata as Aspect structs.
The functions in this module are intended to be applied to individual Aspect structs - for extracting and processing collections of these records please use the matching View module. Other modules may be needed for aspects of a different type contained inside this one.
Link to this section Summary
Functions
Is this aspect relevant to the IdP role?
Returns the index integer for this endpoint/service
Returns a list of requested attributes, if any are present.
Returns the associated role for this aspect: :sp, :idp or :all
Returns a list of service descriptions (one per language)
Returns a list of service names (one per language)
Is this aspect relevant to the SP role?
Link to this section Types
Specs
Link to this section Functions
Specs
Is this aspect relevant to the IdP role?
Will return true
if the aspect has been derived from an IdP role, or is applicable to all roles.
AttributeConsumingService.idp?(aspect)
# => true
Specs
Returns the index integer for this endpoint/service
AttributeConsumingService.index(service)
# => 1
Specs
Returns a list of requested attributes, if any are present.
AttributeConsumingService.requested_attributes(service)
# => [%RequestedAttribute{...}, %RequestedAttribute{...}]
Specs
Returns the associated role for this aspect: :sp, :idp or :all
The role type is useful when handling a mixed list of aspects that may be specific to certain roles of an entity.
AttributeConsumingService.role(aspect)
# => :idp
Specs
Returns a list of service descriptions (one per language)
AttributeConsumingService.service_descriptions(service)
# => [%ServiceDescription{lang: "en", ...}, %ServiceDescription{lang: "cn", ...}]
Specs
Returns a list of service names (one per language)
AttributeConsumingService.service_names(aspect)
# => [%ServiceName{lang: "en", ...}, %ServiceName{lang: "cn", ...}]
Specs
Is this aspect relevant to the SP role?
Will return true
if the aspect has been derived from an SP role, or is applicable to all roles.
AttributeConsumingService.sp?(aspect)
# => false