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

Fix: Load configured app_id when connecting to Simperium #2536

Merged
merged 1 commit into from
Dec 28, 2020

Conversation

dmsnell
Copy link
Member

@dmsnell dmsnell commented Dec 21, 2020

Resolves #2396

In the big rewrite I accidentally instructed the Simperium middleware to always connect
to the production Simperium application and overlook what might be configured in the
config.json or config-local.json files. This led to people being unable to sign in
to test accounts on the test backend: the successful authorizatio would lead to the app
immediately signing out due to an Token Invalid over the WebSocket.

With this fix we're using the configured app name, reading it from the configs, so that
when the repo is cloned and ran it properly connects to history-analyst-dad (or any
value set in its place). This fix restores one's ability to sign in.

Props to @tbourrely for valuable diagnosis of this issue in #2396

In the big rewrite I accidentally instructed the Simperium middleware to always connect
to the production Simperium application and overlook what might be configured in the
`config.json` or `config-local.json` files. This led to people being unable to sign in
to test accounts on the test backend: the successful authorizatio would lead to the app
immediately signing out due to an `Token Invalid` over the WebSocket.

With this fix we're using the configured app name, reading it from the configs, so that
when the repo is cloned and ran it properly connects to `history-analyst-dad` (or any
value set in its place). This fix restores one's ability to sign in.

Props to @tbourrely for valuable diagnosis of this issue.
Copy link
Member

@codebykat codebykat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱

@codebykat codebykat added this to the 2.5.0 milestone Dec 21, 2020
@dmsnell dmsnell merged commit 960cd69 into develop Dec 28, 2020
@dmsnell dmsnell deleted the fix/load-configured-app-id branch December 28, 2020 17:48
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.

Development: Can't log in to local development server
2 participants