Skip to content
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

Misc website fixes #915

Merged
merged 2 commits into from
Jun 30, 2024
Merged

Misc website fixes #915

merged 2 commits into from
Jun 30, 2024

Conversation

SapiensAnatis
Copy link
Owner

think the cause of the 404 is upon us... the JWT subject from the SDK token is a web account ID, we need a game account ID (which was already being done in the existing auth, I just forgot about it)

also:

  • implement caching in WebAuthenticationHelper
  • fix SavefileController route
  • remove static PUBLIC_DAWNSHARD_API_URL and always use the current page origin to form api urls, for better compatibility with samesite cookies

- Stop using the wrong baas ID - need to go to /gameplay/v1/user to get
a game account ID (fixes all those 404s)
- Don't use a fixed DAWNSHARD_API_URL so that same-site cookies will
actually work on all the domains the website is hosted on
- Implement caching for the web authentication handler, since it now
involves a call to BaaS.
@SapiensAnatis SapiensAnatis merged commit 5cec53c into main Jun 30, 2024
8 checks passed
@SapiensAnatis SapiensAnatis deleted the website/bruh branch June 30, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant