Skip to content

Commit

Permalink
that fucking code is retarded
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Facchetti committed Jul 7, 2023
1 parent 7108d45 commit 420bb2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/portal/middleware/intAAD.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func (a IntAAD) Callback(w http.ResponseWriter, r *http.Request) {
}

func (a IntAAD) Login(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "/", http.StatusTemporaryRedirect)
}

func (a IntAAD) AAD(h http.Handler) http.Handler {
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ func adminPortalSessionSetup() (string, *selenium.WebDriver) {
domain = strings.TrimSuffix(domain, ":"+strconv.Itoa(hostPort))

userInfo, err := json.Marshal(userinfo{"test", sessionKey, elevatedGroups})
if err != nil {
panic(err)
}
cookieUser := &selenium.Cookie{
Name: middleware.IntUsernameKey,
Value: string(userInfo),
Expand Down

0 comments on commit 420bb2e

Please sign in to comment.