Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Backport of server: Check that UserFromContext gets user before generating token into release/0.11.x #4683

Conversation

hc-github-team-waypoint
Copy link
Collaborator

Backport

This PR is auto-generated from #4673 to be assessed for backporting due to the inclusion of the label backport/0.11.x.

The below text is copied from the body of the original PR.


Prior to this commit, the servers auth would not validate that a proper user was found for the given context prior to generating a token. We should not generate a token if no user was found, so this commit updates the login token func to return an unathenticated error if no user was found in the given context.

Fixes WAYP-1155


Overview of commits

@hc-github-team-waypoint hc-github-team-waypoint force-pushed the backport/server/err-on-no-user-context/honestly-grand-mammoth branch from 03870d9 to 9fa863e Compare May 9, 2023 18:12
@hc-github-team-waypoint hc-github-team-waypoint merged commit 5d81144 into release/0.11.x May 9, 2023
@hc-github-team-waypoint hc-github-team-waypoint force-pushed the backport/server/err-on-no-user-context/honestly-grand-mammoth branch from 4369dc1 to eb63ec1 Compare May 9, 2023 18:12
@hc-github-team-waypoint hc-github-team-waypoint deleted the backport/server/err-on-no-user-context/honestly-grand-mammoth branch May 9, 2023 18:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant