Anda sedang melihat dokumentasi Apigee dan Apigee Hybrid.
Lihat
dokumentasi Apigee Edge.
SourceNotConfigured
Pesan Kesalahan
Deployment proxy API melalui Apigee UI atau Apigee API gagal dengan pesan error ini:
Error Deploying Revision revision_number to environment ValidateSAMLAssertion[policy_name]: Source is not correctly configured.
Contoh Pesan Error
Error Deploying Revision 2 to test
ValidateSAMLAssertion[Validate-SAML-Assertion-1]: Source is not correctly configured.
Contoh Screenshot Error
Penyebab
Deployment proxy API akan gagal dengan error ini jika satu atau beberapa elemen kebijakan ValidateSAMLAssertion
berikut tidak ditentukan atau kosong: <Source>
, <XPath>
, <Namespaces>
, <Namespace>
.
Misalnya, jika Anda melewatkan elemen <XPath>
atau membiarkan elemen <Source>
atau entity-nya kosong, deployment proxy API akan gagal.
Diagnosis
Identifikasi nama kebijakan
ValidateSAMLAssertion
yang gagal dari pesan error. Misalnya, dalam error berikut, nama kebijakanValidateSAMLAssertion
adalahValidate-SAML-Assertion-1
.ValidateSAMLAssertion[Validate-SAML-Assertion-1]: Source is not correctly configured.
Periksa XML kebijakan
ValidateSAMLAssertion
yang gagal. Periksa apakah satu atau beberapa elemen kebijakan berikut tidak ada atau kosong:<Source>
,<XPath>
,<Namespaces>
,<Namespace>
. Jika demikian, itulah yang dapat menjadi penyebab error.Misalnya, kebijakan berikut memiliki elemen
<Namespaces>
kosong pada elemen<Source>
:<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ValidateSAMLAssertion name="SAML" ignoreContentType="false"> <Source name="request"> <Namespaces></Namespaces> </Source> <Description/> <TrustStore>ref://TrustStoreName</Truststore> <RemoveAssertion>false</RemoveAssertion> </ValidateSAMLAssertion>
Pada contoh di atas, elemen
<Namespaces>
kosong, sehingga Anda mendapatkan error:ValidateSAMLAssertion[Validate-SAML-Assertion-1]: Source is not correctly configured.
Resolusi
Pastikan nilai elemen <Source>
dikonfigurasi dengan benar
menggunakan elemen <Namespaces>
dan elemen turunannya <Namespace>
.
Anda juga harus memastikan elemen <XPath>
sudah ditentukan dan tidak kosong.
Untuk memperbaiki contoh kebijakan ValidateSAMLAssertion
yang ditampilkan di atas, Anda
dapat menambahkan elemen <Namespace>
serta <XPath>
:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ValidateSAMLAssertion name="SAML" ignoreContentType="false">
<Source name="request">
<Namespaces>
<Namespace prefix='soap'>http://schemas.xmlsoap.org/soap/envelope/</Namespace>
<Namespace prefix='wsse'>http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd</Namespace>
<Namespace prefix='saml'>urn:oasis:names:tc:SAML:2.0:assertion</Namespace>
</Namespaces>
<XPath>/soap:Envelope/soap:Header/wsse:Security/saml:Assertion</XPath>
</Source>
<Description/>
<TrustStore>ref://TrustStoreName</Truststore>
<RemoveAssertion>false</RemoveAssertion>
</ValidateSAMLAssertion>
TrustStoreNotConfigured
Pesan Kesalahan
Deployment proxy API melalui APIgee UI atau Apigee API gagal dengan pesan error ini:
Error Deploying Revision revision_number to environment ValidateSAMLAssertion[[Ljava.lang.Object;@object]: Trust store is not correctly configured.
Contoh Pesan Error
Error Deploying Revision 2 to test
ValidateSAMLAssertion[[Ljava.lang.Object;@39537262]: Trust store is not correctly configured.
Contoh Screenshot Error
Penyebab
Jika elemen <TrustStore>
kosong atau tidak ditentukan dalam kebijakanValidateSAMLAssertion, deployment proxy API akan gagal. Trust Store yang valid wajib diisi.
Diagnosis
Periksa semua kebijakan Validasi Pernyataan SAML di Proxy API tertentu tempat kegagalan terjadi. Jika ada kebijakan Validasi SAML Assertion saat elemen
<TrustStore>
kosong atau tidak ditentukan, itulah penyebab error.<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ValidateSAMLAssertion name="SAML" ignoreContentType="false"> <Source name="request"> <Namespaces> <Namespace prefix='soap'>http://schemas.xmlsoap.org/soap/envelope/</Namespace> <Namespace prefix='wsse'>http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd</Namespace> <Namespace prefix='saml'>urn:oasis:names:tc:SAML:2.0:assertion</Namespace> </Namespaces> <XPath>/soap:Envelope/soap:Header/wsse:Security/saml:Assertion</XPath> </Source> <Description/> <TrustStore/> <RemoveAssertion>false</RemoveAssertion> </ValidateSAMLAssertion>
Resolusi
Pastikan elemen <TrustStore>
selalu ditentukan dan tidak kosong dalam kebijakan SAMLAssertion. Nama <TrustStore>
harus cocok dengan nama TrustStore yang valid
yang ada di semua lingkungan tempat Anda mencoba men-deploy
proxy.
Untuk memperbaiki contoh di atas, Anda dapat menentukan elemen <TrustStore>
dengan nilai yang valid.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ValidateSAMLAssertion name="SAML" ignoreContentType="false">
<Source name="request">
<Namespaces>
<Namespace prefix='soap'>http://schemas.xmlsoap.org/soap/envelope/</Namespace>
<Namespace prefix='wsse'>http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd</Namespace>
<Namespace prefix='saml'>urn:oasis:names:tc:SAML:2.0:assertion</Namespace>
</Namespaces>
<XPath>/soap:Envelope/soap:Header/wsse:Security/saml:Assertion</XPath>
</Source>
<TrustStore>TrustStoreName</TrustStore>
<RemoveAssertion>false</RemoveAssertion>
</ValidateSAMLAssertion>
NullKeyStore
Pesan Kesalahan
Deployment proxy API melalui APIgee UI atau API gagal dengan pesan error ini:
Error Deploying Revision revision_number to environment Assertion KeyStore name cannot be null.
Contoh Pesan Error
Error Deploying Revision 4 to test
Assertion KeyStore name cannot be null.
Contoh Screenshot Error
Penyebab
Jika elemen turunan <Name>
kosong atau tidak ditentukan dalam elemen <Keystore>
dari kebijakan GenerateSAMLAssertion
, deployment proxy API akan gagal. Nama Keystore yang valid wajib diisi.
Diagnosis
Periksa semua kebijakan
GenerateSAMLAssertion
di Proxy API tertentu tempat kegagalan terjadi. Jika ada kebijakanGenerateSAMLAssertion
yang mana elemen turunan<Name>
kosong atau tidak ditentukan dalam elemen<Keystore>
, itulah penyebab error.Kebijakan
GenerateSAMLAssertion
berikut memiliki elemen turunan kosong<Name>
dalam elemen<Keystore>
:<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <GenerateSAMLAssertion name="SAML" ignoreContentType="false">` <CanonicalizationAlgorithm /> <Issuer ref="reference">Issuer name</Issuer> <KeyStore> <Name></Name> <Alias ref="reference">alias</Alias> </KeyStore> <OutputVariable> <FlowVariable>assertion.content</FlowVariable> <Message name="request"> <Namespaces> <Namespace prefix="test">http://www.example.com/test</Namespace> </Namespaces> <XPath>/envelope/header</XPath> </Message> </OutputVariable> <SignatureAlgorithm /> <Subject ref="reference">Subject name</Subject> <Template ignoreUnresolvedVariables="false"> <!-- A lot of XML goes here, in CDATA, with {} around each variable --> </Template> </GenerateSAMLAssertion>
Resolusi
Pastikan elemen turunan <Name>
selalu ditentukan dan tidak kosong dalam elemen <Keystore>
kebijakan GenerateSAMLAssertion
.
Untuk memperbaiki contoh di atas, Anda dapat menentukan elemen <Name>
dengan benar
serta memastikan bahwa nilai yang valid ditetapkan ke elemen <Alias>
.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GenerateSAMLAssertion name="SAML" ignoreContentType="false">
<CanonicalizationAlgorithm />
<Issuer ref="reference">Issuer name</Issuer>
<KeyStore>
<Name ref="reference">keystorename</Name>
<Alias ref="reference">alias</Alias>
</KeyStore>
<OutputVariable>
<FlowVariable>assertion.content</FlowVariable>
<Message name="request">
<Namespaces>
<Namespace prefix="test">http://www.example.com/test</Namespace>
</Namespaces>
<XPath>/envelope/header</XPath>
</Message>
</OutputVariable>
<SignatureAlgorithm />
<Subject ref="reference">Subject name</Subject>
<Template ignoreUnresolvedVariables="false">
<!-- A lot of XML goes here, in CDATA, with {} around
each variable -->
</Template>
</GenerateSAMLAssertion>
Lihat contoh dari kebijakan SAMLAssertion.
NullKeyStoreAlias
Pesan Kesalahan
Deployment proxy API melalui Apigee UI atau Apigee API gagal dengan pesan error ini:
Error Deploying Revision revision_number to environment Assertion KeyStore alias cannot be null.
Contoh Pesan Error
Error Deploying Revision 4 to test
Assertion KeyStore alias cannot be null.
Contoh Screenshot Error
Penyebab
Jika elemen turunan <Alias>
kosong atau tidak ditentukan dalam elemen <Keystore>
dari kebijakan GenerateSAMLAssertion
, deployment proxy API akan gagal. Alias Keystore yang valid wajib diisi.
Diagnosis
Periksa semua kebijakan
GenerateSAMLAssertion
di Proxy API tertentu tempat kegagalan terjadi. Jika ada kebijakanGenerateSAMLAssertion
yang mana elemen turunan<Alias>
kosong atau tidak ditentukan dalam elemen<Keystore>
, itulah penyebab error.GenerateSAMLAssertion
berikut memiliki elemen turunan kosong<Alias>
dalam elemen<Keystore>
:<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <GenerateSAMLAssertion name="SAML" ignoreContentType="false">` <CanonicalizationAlgorithm /> <Issuer ref="reference">Issuer name</Issuer> <KeyStore> <Name ref="reference">keystorename</Name> <Alias></Alias> </KeyStore> <OutputVariable> <FlowVariable>assertion.content</FlowVariable> <Message name="request"> <Namespaces> <Namespace prefix="test">http://www.example.com/test</Namespace> </Namespaces> <XPath>/envelope/header</XPath> </Message> </OutputVariable> <SignatureAlgorithm /> <Subject ref="reference">Subject name</Subject> <Template ignoreUnresolvedVariables="false"> <!-- A lot of XML goes here, in CDATA, with {} around each variable --> </Template> </GenerateSAMLAssertion>
Resolusi
Pastikan elemen turunan <Name>
selalu ditentukan dan tidak kosong dalam elemen <Keystore>
kebijakan GenerateSAMLAssertion
.
Untuk memperbaiki contoh di atas, Anda dapat menentukan elemen <Alias>
dengan benar serta memastikan bahwa nilai yang valid ditentukan ke
elemen <Name>
.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GenerateSAMLAssertion name="SAML" ignoreContentType="false">
<CanonicalizationAlgorithm />
<Issuer ref="reference">Issuer name</Issuer>
<KeyStore>
<Name ref="reference">keystorename</Name>
<Alias ref="reference">alias</Alias>
</KeyStore>
<OutputVariable>
<FlowVariable>assertion.content</FlowVariable>
<Message name="request">
<Namespaces>
<Namespace prefix="test">http://www.example.com/test</Namespace>
</Namespaces>
<XPath>/envelope/header</XPath>
</Message>
</OutputVariable>
<SignatureAlgorithm />
<Subject ref="reference">Subject name</Subject>
<Template ignoreUnresolvedVariables="false">
<!-- A lot of XML goes here, in CDATA, with {} around
each variable -->
</Template>
</GenerateSAMLAssertion>
Lihat contoh dari kebijakan SAMLAssertion.
NullIssuer
Pesan Kesalahan
Deployment proxy API melalui APIgee UI atau Apigee API gagal dengan pesan error ini:
Error Deploying Revision revision_number to environment Assertion Issuer cannot be null.
Contoh Pesan Error
Error Deploying Revision 4 to test
Assertion Issuer cannot be null.
Contoh Screenshot Error
Penyebab
Jika elemen <Issuer>
kosong atau tidak ditentukan dalam
kebijakan GenerateSAMLAssertion
, deployment proxy API akan gagal. Nilai <Issuer>
yang valid wajib diisi.
Diagnosis
Periksa semua kebijakan
GenerateSAMLAssertion
di Proxy API tertentu tempat kegagalan terjadi. Jika ada kebijakanGenerateSAMLAssertion
yang mana elemen<Issuer>
kosong atau tidak ditentukan, itulah penyebab error.Kebijakan
GenerateSAMLAssertion
berikut memiliki elemen<Issuer>
yang kosong:<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <GenerateSAMLAssertion name="SAML" ignoreContentType="false">` <CanonicalizationAlgorithm /> <Issuer></Issuer> <KeyStore> <Name ref="reference">keystorename</Name> <Alias ref="reference">alias</Alias> </KeyStore> <OutputVariable> <FlowVariable>assertion.content</FlowVariable> <Message name="request"> <Namespaces> <Namespace prefix="test">http://www.example.com/test</Namespace> </Namespaces> <XPath>/envelope/header</XPath> </Message> </OutputVariable> <SignatureAlgorithm /> <Subject ref="reference">Subject name</Subject> <Template ignoreUnresolvedVariables="false"> <!-- A lot of XML goes here, in CDATA, with {} around each variable --> </Template> </GenerateSAMLAssertion>
Resolusi
Pastikan elemen <Issuer>
selalu ditentukan dan tidak kosong dalam
kebijakan GenerateSAMLAssertion
.
Untuk memperbaiki contoh di atas, tentukan elemen <Issuer>
dengan benar:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GenerateSAMLAssertion name="SAML" ignoreContentType="false">
<CanonicalizationAlgorithm />
<Issuer ref="reference">Issuer name</Issuer>
<KeyStore>
<Name ref="reference">keystorename</Name>
<Alias ref="reference">alias</Alias>
</KeyStore>
<OutputVariable>
<FlowVariable>assertion.content</FlowVariable>
<Message name="request">
<Namespaces>
<Namespace prefix="test">http://www.example.com/test</Namespace>
</Namespaces>
<XPath>/envelope/header</XPath>
</Message>
</OutputVariable>
<SignatureAlgorithm />
<Subject ref="reference">Subject name</Subject>
<Template ignoreUnresolvedVariables="false">
<!-- A lot of XML goes here, in CDATA, with {} around
each variable -->
</Template>
</GenerateSAMLAssertion>
Lihat contoh dari kebijakan SAMLAssertion.