C# Class SobekCM.Core.Configuration.Authentication.Shibboleth_Configuration

ファイルを表示 Open project: MarkVSullivan/SobekCM-Web-Application

Private Properties

Property Type Description
Convert_String_To_XML_Safe string

Public Methods

Method Description
Add_Attribute_Mapping ( string ServerVariable, User_Object_Attribute_Mapping_Enum UserAttribute ) : void

Add a new mapping between a server variable returned from Shibboleth and a user attribute within the SobekCM user object

Add_CanSubmit_Indicator ( string ServerVariable, string RequiredValue ) : void

Add a new indicator that a new user established using this Shibboleth authentication system can submit items

Add_Constant ( User_Object_Attribute_Mapping_Enum UserAttribute, string ConstantValue ) : void

Add a new constant mapping for all new users that are established using this Shibboleth authentication system

Get_User_Object_Mapping ( string ServerVariable ) : User_Object_Attribute_Mapping_Enum

Get the mapping from the server variable into the new user object

Save_To_Config_File ( string FilePath ) : bool

Save this quality control configuration to a XML config file

Shibboleth_Configuration ( ) : System

Constructor for a new instance of the Shibboleth_Configuration class

Private Methods

Method Description
Convert_String_To_XML_Safe ( string element ) : string

Converts a basic string into an XML-safe string

Method Details

Add_Attribute_Mapping() public method

Add a new mapping between a server variable returned from Shibboleth and a user attribute within the SobekCM user object
public Add_Attribute_Mapping ( string ServerVariable, User_Object_Attribute_Mapping_Enum UserAttribute ) : void
ServerVariable string Server variable from the Shibboleth response
UserAttribute User_Object_Attribute_Mapping_Enum Attribute within the SobekCM user object
return void

Add_CanSubmit_Indicator() public method

Add a new indicator that a new user established using this Shibboleth authentication system can submit items
public Add_CanSubmit_Indicator ( string ServerVariable, string RequiredValue ) : void
ServerVariable string Server variable from the Shibboleth response
RequiredValue string Value to match - if the value matches, then the new user should be granted submit rights
return void

Add_Constant() public method

Add a new constant mapping for all new users that are established using this Shibboleth authentication system
public Add_Constant ( User_Object_Attribute_Mapping_Enum UserAttribute, string ConstantValue ) : void
UserAttribute User_Object_Attribute_Mapping_Enum Attribute within the SobekCM user object
ConstantValue string Constant value to apply for all new Shibboleth users established using this Shibboleth authenticaion system
return void

Get_User_Object_Mapping() public method

Get the mapping from the server variable into the new user object
public Get_User_Object_Mapping ( string ServerVariable ) : User_Object_Attribute_Mapping_Enum
ServerVariable string Name from the server variable
return User_Object_Attribute_Mapping_Enum

Save_To_Config_File() public method

Save this quality control configuration to a XML config file
public Save_To_Config_File ( string FilePath ) : bool
FilePath string File/path for the resulting XML config file
return bool

Shibboleth_Configuration() public method

Constructor for a new instance of the Shibboleth_Configuration class
public Shibboleth_Configuration ( ) : System
return System