Skip to content

Commit

Permalink
fixup! submit: add support for checking imat tokens
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Nov 13, 2023
1 parent 06867f0 commit 39150bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@ func (s *submitServer) parseRequest(w http.ResponseWriter, req *http.Request, re
delete(p.Data, "user_id")
delete(p.Data, "verified_device_id")
if !hasUserID {
http.Error(w, "No user ID provided", http.StatusForbidden)
return nil
return p
} else if p.AppName == "booper" {
whoami, err := s.verifyIMAToken(req.Context(), req.Header.Get("Authorization"), userID)
if err != nil {
Expand Down

0 comments on commit 39150bc

Please sign in to comment.