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

Pass username and instanceHost in UserData with the JWT #261

Merged

Conversation

jcgurango
Copy link
Collaborator

The app mostly just passes the JWT token around, which is ok for auth but is not ok for identification. This modifies a lot of files but all it really does is refactors the controllers to use UserData instead of just the JWT token directly. This will allow us to identify which user the request is being made for, rather than just blindly passing auth data. This will be more useful in later commits.

… JWT

The app mostly just passes the JWT token around, which is ok for auth
but is not ok for identification. This modifies a lot of files but all
it really does is refactors the controllers to use UserData instead of
just the JWT token directly. This will allow us to identify which user
the request is being made for, rather than just blindly passing auth
data. This will be more useful in later commits.
Copy link
Collaborator

@zachatrocity zachatrocity left a comment

Choose a reason for hiding this comment

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

LGTM 👊

Thanks for splitting this out

@zachatrocity zachatrocity merged commit 5651fe0 into liftoff-app:master Jul 4, 2023
jcgurango added a commit that referenced this pull request Jul 4, 2023
…riginating instance (#254)

This adds a new menu item which appears under the "..." menu of a
community called "View on another instance".

![image](https://github.com/liftoff-app/liftoff/assets/1340627/e7bb7f1a-fd88-444a-b823-1bb5289cb3b8)

This pops up a list of accounts for you to choose from. The "Subscribe"
button, when viewing anonymously, also pops this up:

![image](https://github.com/liftoff-app/liftoff/assets/1340627/3a2e257a-d9ac-407f-86df-e4cd3493e0fb)

This then executes a ResolveObject call to retrieve the community:

![image](https://github.com/liftoff-app/liftoff/assets/1340627/9ccd7b96-0aca-4f06-8b04-f8d1b5e69bf9)

Before showing you the community, in the other instance. Denoted by the
"(via instance)" text in the name of the community.

![image](https://github.com/liftoff-app/liftoff/assets/1340627/0c8c01d0-0cfd-47cd-8633-29f49ee31ece)

You can then subscribe directly from here, or if some posts are loaded
you can even comment or vote directly.

Dependent on #261
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.

2 participants