Stephen on Software aka SOS

November 13, 2009

Adobe AIR and Json Parsing

Filed under: Uncategorized — Tags: , — sljm @ 2:25 pm

In Adobe AIR, they restrict eval function for all application content for security reasons. So you can’t use eval() to parse a Json string to object, so you will need to go and download the JSON library here.

And just call JSON.parse(string); That should give u back a Javascript object, for you to use.

November 10, 2009

Weblogic and Spring Security problems

Filed under: Programming — Tags: , — sljm @ 2:58 pm

When depolying Spring Security on Weblogic 10.3. I encountered 2 pop up one for Spring and one for Weblogic.

Spring Security was configured with basic authentication. If your used is not in Weblogic’s security realm basically you dont get access. Some people also faced the same problem and here are their solutions.

If you use the form base authentication, you should be fine. It just happens for those who use the default basic/digest forms that your web browser provides.

1. Configure web.xml

<login-config>
<auth-method>CLIENT-CERT</auth-method>
</login-config>

add the above to your web.xml.

alternatively you can try this.

2. Edit weblogic config/config.xml
Add the following lines to config.xml in your admin server.

<enforce-valid-basic-auth-credentials>
    false
</enforce-valid-basic-auth-credentials>

Blog at WordPress.com.