Skip to content

Commit

Permalink
resolving comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hkohlsaat committed Oct 9, 2024
1 parent 4954427 commit 7f53e66
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions clientapi/auth/user_interactive.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ type UserInteractive struct {
flows []userInteractiveFlow
// Map of login type to implementation
types map[string]Type
// Map of session ID to completed login types, will need to be extended in future

mutex sync.RWMutex
mutex sync.RWMutex
// Map of session ID to completed login types, will need to be extended in future
sessions map[string][]string
}

Expand Down Expand Up @@ -160,13 +160,11 @@ func (u *UserInteractive) challenge(sessionID string) *util.JSONResponse {
completed := u.sessions[sessionID]
u.mutex.RUnlock()

flows := u.flows

return &util.JSONResponse{
Code: 401,
JSON: Challenge{
Completed: completed,
Flows: flows,
Flows: u.flows,
Session: sessionID,
Params: make(map[string]interface{}),
},
Expand Down

0 comments on commit 7f53e66

Please sign in to comment.