-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample code to login and logout with accounts.topcoder.com #1
base: master
Are you sure you want to change the base?
Conversation
@aselbie @sudoster home.controller.coffee
|
@ykohata I have a question about the logout logic. If we use the module that I am adding to as described on Confluence, we will be able to avoid using the localStorage for our individual subdomains entirely. I think this will simplify the logout process significantly. Do you see any issues with this process? |
@aselbie |
Integrate Connector App into Sample App
Updated to support latest Connector
Sample code to login and logout with accounts.topcoder.com
Basic flows are described at:
https://appirio.atlassian.net/wiki/display/CORE/accounts.topcoder.com
Demo movies
login/logout
http://screencast.com/t/f9YweRIO4Q
login after reset password
http://screencast.com/t/I6wFb14v01
Login & Logout
Login
home.controller.coffee
Logout
home.controller.coffee
Logout URL
To log out from the whole system, each application should provide its own logout url which is that accounts site opens with iframe in the logout page.
Sample: https://sample.topcoder-dev.com/logout.html (This has been manually deployed in S3)
logout.html
Callback
home.controller.coffee
2016.03.29
The tcjwt and tcsso can be received via Cookie directly if the application and Accounts site are in the same domain.
Reset Password
Login after resetting password
reset.controller.coffee