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

Backend Admin API middleware to verify session token; add tenantId to context #2916

Closed
Tracked by #2893
njlie opened this issue Aug 28, 2024 · 1 comment · Fixed by #2974
Closed
Tracked by #2893

Backend Admin API middleware to verify session token; add tenantId to context #2916

njlie opened this issue Aug 28, 2024 · 1 comment · Fixed by #2974
Assignees
Labels
pkg: backend Changes in the backend package.

Comments

@njlie
Copy link
Contributor

njlie commented Aug 28, 2024

The backend package's Apollo GraphQL server should expect a session token from Kratos in any request made to the GraphQL API, such as in the header.

Based on the identity.id for this session, and if it is an operator or not, it should return the relevant tenantId and add it to the context. Then, the GraphQL resolver should use that tenantId to filter the query/mutation results.

@njlie njlie mentioned this issue Aug 28, 2024
17 tasks
@njlie njlie self-assigned this Aug 28, 2024
@njlie
Copy link
Contributor Author

njlie commented Oct 11, 2024

Added in #2974, closing.

@njlie njlie closed this as completed Oct 11, 2024
@njlie njlie linked a pull request Oct 11, 2024 that will close this issue
6 tasks
@njlie njlie mentioned this issue Oct 11, 2024
1 task
@njlie njlie added the pkg: backend Changes in the backend package. label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: backend Changes in the backend package.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant