You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ju...@apache.org on 2011/11/17 22:51:17 UTC
svn commit: r1203386 -
/sling/trunk/bundles/auth/openid/src/main/java/org/apache/sling/auth/openid/impl/OpenIDAuthenticationHandler.java
Author: justin
Date: Thu Nov 17 21:51:17 2011
New Revision: 1203386
URL: http://svn.apache.org/viewvc?rev=1203386&view=rev
Log:
SLING-2293 - wrapping call to RelayingParty.newInstance() with TTCL reset code
Modified:
sling/trunk/bundles/auth/openid/src/main/java/org/apache/sling/auth/openid/impl/OpenIDAuthenticationHandler.java
Modified: sling/trunk/bundles/auth/openid/src/main/java/org/apache/sling/auth/openid/impl/OpenIDAuthenticationHandler.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/auth/openid/src/main/java/org/apache/sling/auth/openid/impl/OpenIDAuthenticationHandler.java?rev=1203386&r1=1203385&r2=1203386&view=diff
==============================================================================
--- sling/trunk/bundles/auth/openid/src/main/java/org/apache/sling/auth/openid/impl/OpenIDAuthenticationHandler.java (original)
+++ sling/trunk/bundles/auth/openid/src/main/java/org/apache/sling/auth/openid/impl/OpenIDAuthenticationHandler.java Thu Nov 17 21:51:17 2011
@@ -769,7 +769,13 @@ public class OpenIDAuthenticationHandler
new String(cookieSecret));
}
- relyingParty = RelyingParty.newInstance(openIdProps);
+ final ClassLoader oldTCCL = Thread.currentThread().getContextClassLoader();
+ Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
+ try {
+ relyingParty = RelyingParty.newInstance(openIdProps);
+ } finally {
+ Thread.currentThread().setContextClassLoader(oldTCCL);
+ }
}
return relyingParty;
}