Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit bdae30a

Browse files
authored
Merge pull request #546 from appirio-tech/dev
Master: new auth changes - 29 Oct 2020
2 parents d871330 + 489f419 commit bdae30a

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

conf/ApplicationServer.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ SSO_DOMAIN = @ApplicationServer.SSO_DOMAIN@
4747
JWT_V3_COOKIE_KEY = @ApplicationServer.JWT_V3_COOKIE_KEY@
4848
JWT_COOKIE_KEY = @ApplicationServer.JWT_COOKIE_KEY@
4949

50-
TOPCODER_CONNECT_URL=@TopcoderConnectUrl@
50+
TOPCODER_CONNECT_URL=@TopcoderConnectUrl@
51+
TOPCODER_NEW_AUTH_URL=@TopcoderNewAuthUrl@

src/java/main/com/topcoder/direct/services/configs/ServerConfiguration.java

+5
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,9 @@ public class ServerConfiguration extends ApplicationServer {
6363
* The Topcoder Connect URL
6464
*/
6565
public static String TOPCODER_CONNECT_URL = bundle.getProperty("TOPCODER_CONNECT_URL", "https://connect.topcoder.com");
66+
67+
/**
68+
* Topcoder - New Auth URL to refresh token
69+
*/
70+
public static String TOPCODER_NEW_AUTH_URL = bundle.getProperty("TOPCODER_NEW_AUTH_URL", "");
6671
}

src/web/WEB-INF/includes/footerScripts.jsp

+14
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,17 @@ analytics.identify('', {
3939
<script>/*<![CDATA[*/window.zE||(function(e,t,s){var n=window.zE=window.zEmbed=function(){n._.push(arguments)}, a=n.s=e.createElement(t),r=e.getElementsByTagName(t)[0];n.set=function(e){ n.set._.push(e)},n._=[],n.set._=[],a.async=true,a.setAttribute("charset","utf-8"), a.src="https://static.zdassets.com/ekr/asset_composer.js?key="+s, n.t=+new Date,a.type="text/javascript",r.parentNode.insertBefore(a,r)})(document,"script","d4e16f55-6e5d-4957-8345-e218128ae36b");/*]]>*/</script>
4040
<!-- End of topcoder Zendesk Widget script -->
4141

42+
<!-- Auth0 RS256 staff -->
43+
44+
<script>
45+
//window.onload = authSetup;
46+
function prepareFrame() {
47+
var ifrm = document.createElement("iframe");
48+
ifrm.setAttribute("src", '<%=ServerConfiguration.TOPCODER_NEW_AUTH_URL %>');
49+
ifrm.style.width = "0px";
50+
ifrm.style.height = "0px";
51+
document.body.appendChild(ifrm);
52+
}
53+
window.onload = prepareFrame;
54+
</script>
55+
<!-- End Auth0 RS256 staff -->

0 commit comments

Comments
 (0)