Skip to content

Instantly share code, notes, and snippets.

@sstadelman
Created August 15, 2014 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sstadelman/00bd9c42cff68ae2829e to your computer and use it in GitHub Desktop.
Save sstadelman/00bd9c42cff68ae2829e to your computer and use it in GitHub Desktop.
SAML2 Configuration Provider implementation
-(void) initConversationManagerWithSAMLProvider {
CommonAuthenticationConfigurator* commonConfig = [[CommonAuthenticationConfigurator alloc] init];
[commonConfig addSAML2ConfigProvider:self];
HttpConversationManager* manager = [[HttpConversationManager alloc] init];
[commonConfig configureManager:manager];
}
/**
* SAML2 Configuration Provider implementation
*/
-(void) provideSAML2ConfigurationForURL:(NSURL*)url completionBlock:(void (^)(NSString* responseHeader, NSString* finishEndPoint, NSString* finishParameters))completionBlock {
completionBlock(@"com.sap.cloud.security.login", @"/SAMLAuthLauncher", @"finishEndpointParam");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment