added methods for supporting SAML2 configuration

pull/7/head
Wolfgang Sourdeau 2012-11-02 15:30:13 -04:00
parent 6840fbb96c
commit 695fc5fff9
2 changed files with 38 additions and 0 deletions

View File

@ -76,6 +76,13 @@
- (NSString *) CASServiceURL;
- (BOOL) CASLogoutEnabled;
- (NSString *) SAML2PrivateKeyLocation;
- (NSString *) SAML2CertificateLocation;
- (NSString *) SAML2IdpMetadataLocation;
- (NSString *) SAML2IdpPublicKeyLocation;
- (NSString *) SAML2IdpCertificateLocation;
- (BOOL) SAML2LogoutEnabled;
- (BOOL) enablePublicAccess;
@end

View File

@ -425,6 +425,37 @@ _injectConfigurationFromFile (NSUserDefaults *ud,
return [self boolForKey: @"SOGoCASLogoutEnabled"];
}
/* SAML2 support */
- (NSString *) SAML2PrivateKeyLocation
{
return [self stringForKey: @"SOGoSAML2PrivateKeyLocation"];
}
- (NSString *) SAML2CertificateLocation;
{
return [self stringForKey: @"SOGoSAML2CertificateLocation"];
}
- (NSString *) SAML2IdpMetadataLocation
{
return [self stringForKey: @"SOGoSAML2IdpMetadataLocation"];
}
- (NSString *) SAML2IdpPublicKeyLocation
{
return [self stringForKey: @"SOGoSAML2IdpPublicKeyLocation"];
}
- (NSString *) SAML2IdpCertificateLocation
{
return [self stringForKey: @"SOGoSAML2IdpCertificateLocation"];
}
- (BOOL) SAML2LogoutEnabled
{
return [self boolForKey: @"SOGoSAML2LogoutEnabled"];
}
- (BOOL) enablePublicAccess
{
return [self boolForKey: @"SOGoEnablePublicAccess"];