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

new auth changes #545

Merged
merged 1 commit into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion conf/ApplicationServer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ SSO_DOMAIN = @ApplicationServer.SSO_DOMAIN@
JWT_V3_COOKIE_KEY = @ApplicationServer.JWT_V3_COOKIE_KEY@
JWT_COOKIE_KEY = @ApplicationServer.JWT_COOKIE_KEY@

TOPCODER_CONNECT_URL=@TopcoderConnectUrl@
TOPCODER_CONNECT_URL=@TopcoderConnectUrl@
TOPCODER_NEW_AUTH_URL=@TopcoderNewAuthUrl@
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,9 @@ public class ServerConfiguration extends ApplicationServer {
* The Topcoder Connect URL
*/
public static String TOPCODER_CONNECT_URL = bundle.getProperty("TOPCODER_CONNECT_URL", "https://connect.topcoder.com");

/**
* Topcoder - New Auth URL to refresh token
*/
public static String TOPCODER_NEW_AUTH_URL = bundle.getProperty("TOPCODER_NEW_AUTH_URL", "");
}
14 changes: 14 additions & 0 deletions src/web/WEB-INF/includes/footerScripts.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,17 @@ analytics.identify('', {
<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>
<!-- End of topcoder Zendesk Widget script -->

<!-- Auth0 RS256 staff -->

<script>
//window.onload = authSetup;
function prepareFrame() {
var ifrm = document.createElement("iframe");
ifrm.setAttribute("src", '<%=ServerConfiguration.TOPCODER_NEW_AUTH_URL %>');
ifrm.style.width = "0px";
ifrm.style.height = "0px";
document.body.appendChild(ifrm);
}
window.onload = prepareFrame;
</script>
<!-- End Auth0 RS256 staff -->