You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that we no longer want to use the tcsso cookie for the web arena. Instead, we just want to validate that the JWT token is valid, similar to what the community app does, using the TC Core Lib dependency
We need to make sure that the arena still can call the APIs appropriately using the updated bearer token. I don't see anywhere where we are using the tcsso token, but there are a couple places where the arena code appears to be using the jwtToken. This should be the same as the v3token, but we'll need to ensure that it still works as expected when we switch to use the TC Core Lib dependency.
Problem
Currently, the web arena uses custom code for validating the
tcsso
cookie:arena-web/app/index.html
Line 20 in 9d1b51c
There's also code here that uses it:
arena-web/app/js/resolvers.js
Line 137 in 9d1b51c
arena-web/app/js/factories.js
Line 1068 in 9d1b51c
arena-web/app/js/factories.js
Line 1071 in 9d1b51c
arena-web/app/js/controllers/baseCtrl.js
Line 661 in 9d1b51c
The problem is that we no longer want to use the
tcsso
cookie for the web arena. Instead, we just want to validate that the JWT token is valid, similar to what the community app does, using the TC Core Lib dependencySolution
Instead of using
tcsso
manually in the arena web, we want to transition to using the TC Core Lib dependency linked to above, in the web arena.The TC Core Lib uses the v3 bearer token instead of
tcsso
, which is more current and easier to manage for Topcoder.Examples:
Caveats
We need to make sure that the arena still can call the APIs appropriately using the updated bearer token. I don't see anywhere where we are using the
tcsso
token, but there are a couple places where the arena code appears to be using thejwtToken
. This should be the same as the v3token, but we'll need to ensure that it still works as expected when we switch to use the TC Core Lib dependency.For reference:
arena-web/app/js/factories.js
Line 1074 in 9d1b51c
arena-web/app/js/controllers/practiceProblemListCtrl.js
Line 74 in 9d1b51c
Testing
Testing details will be provided in the F2F challenge forum.
The text was updated successfully, but these errors were encountered: