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

[app] Fix User Authentication #445

Merged
merged 1 commit into from
Nov 29, 2022
Merged

Conversation

ricoberger
Copy link
Member

For users with a lot of teams and permissions the authentication process was broken, because we saved all the users teams and permissions within the cookie, so that the cookie could exceed the maximum size of 4096 characters.

This is now fixed by just adding the users email address and team to the cookie and getting the permissions within each API call via the auth middleware.

@ricoberger ricoberger added the changelog: fixed Something which wasn't working is fixed label Nov 29, 2022
For users with a lot of teams and permissions the authentication process
was broken, because we saved all the users teams and permissions within
the cookie, so that the cookie could exceed the maximum size of 4096
characters.

This is now fixed by just adding the users email address and team to the
cookie and getting the permissions within each API call via the auth
middleware.
@codecov-commenter
Copy link

Codecov Report

Merging #445 (6fb54c6) into main (3fac1ad) will increase coverage by 0.01%.
The diff coverage is 38.46%.

@@            Coverage Diff             @@
##             main     #445      +/-   ##
==========================================
+ Coverage   43.77%   43.78%   +0.01%     
==========================================
  Files         143      143              
  Lines       12396    12392       -4     
==========================================
  Hits         5426     5426              
+ Misses       6829     6825       -4     
  Partials      141      141              
Impacted Files Coverage Δ
pkg/hub/hub.go 0.00% <0.00%> (ø)
pkg/hub/auth/auth.go 74.30% <90.90%> (+1.72%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ricoberger ricoberger merged commit 413a82f into main Nov 29, 2022
@ricoberger ricoberger deleted the app-fix-user-authentication branch November 29, 2022 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fixed Something which wasn't working is fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants