public SAMLBindingBaseTestCase, public MessageEncoder::ArtifactGenerator, public MessageDecoder::ArtifactResolver {
public:
void setUp() {
- m_fields.clear();
SAMLBindingBaseTestCase::setUp();
}
void tearDown() {
- m_fields.clear();
SAMLBindingBaseTestCase::tearDown();
}
SAMLConfig::getConfig().MessageEncoderManager.newPlugin(SAMLConstants::SAML1_PROFILE_BROWSER_ARTIFACT, NULL)
);
encoder->setArtifactGenerator(this);
- encoder->encode(m_fields,toSend.get(),"https://sp.example.org/","state",m_creds);
+ encoder->encode(*this,toSend.get(),"https://sp.example.org/SAML/Artifact","https://sp.example.org/","state",m_creds);
toSend.release();
// Decode message.
}
}
- const char* getMethod() const {
- return "GET";
- }
-
- const char* getRequestURL() const {
- return "https://sp.example.org/SAML/Artifact";
- }
-
- const char* getQueryString() const {
- return NULL;
- }
-
SAMLArtifact* generateSAML1Artifact(const char* relyingParty) const {
return new SAMLArtifactType0001(SAMLConfig::getConfig().hashSHA1("https://idp.example.org/"));
}