Base64 Encode Class Is Not Recognized In Script Filter (Doc ID 2043945.1)

Last updated on SEPTEMBER 02, 2016

Applies to:

Oracle API Gateway - Version 11.1.2 and later
Information in this document applies to any platform.

Symptoms

On : 11.1.2 version, OAG Policy Studio

It is necessary to gzip a SAML assertion and encode it to send as a HTTP header.


The following blog has the steps to follow:

  http://www.ateam-oracle.com/identity-propagation-from-oag-to-rest-apis-protected-by-owsm/

In above link, when implementing the gzip + encode SAML assertion in step 7, the following error is reported:

ERROR
-----------------------
nested fault: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "Base64" is not defined. (#69) in at line number 69:
javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "Base64" is not defined. (#69) in at line number 69
at com.sun.script.javascript.RhinoScriptEngine.invoke(RhinoScriptEngine.java:300)
at com.sun.script.javascript.RhinoScriptEngine.invokeFunction(RhinoScriptEngine.java:258)
at com.vordel.circuit.script.ScriptProcessor.invoke(ScriptProcessor.java:51)
at com.vordel.circuit.InvocationEngine.invokeFilter(InvocationEngine.java:150)
at com.vordel.circuit.InvocationEngine.invokeCircuit(InvocationEngine.java:42)
at com.vordel.circuit.CircuitDelegateProcessor.invoke(CircuitDelegateProcessor.java:45)
at com.vordel.circuit.InvocationEngine.invokeFilter(InvocationEngine.java:150)
at com.vordel.circuit.InvocationEngine.invokeCircuit(InvocationEngine.java:42)
at com.vordel.circuit.InvocationEngine.recordCircuitInvocation(InvocationEngine.java:276)


Due to this occurring, the project cannot be finished.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms