Test mgmt http handler (#240)

This commit is contained in:
shatoboar
2022-02-22 18:18:05 +01:00
committed by GitHub
parent 41c6af6b6f
commit 5f5cbf7e20
8 changed files with 282 additions and 9 deletions
+2 -1
View File
@@ -122,7 +122,8 @@ func (h *SetupKeys) createKey(accountId string, w http.ResponseWriter, r *http.R
}
func (h *SetupKeys) getSetupKeyAccount(r *http.Request) (*server.Account, error) {
jwtClaims := extractClaimsFromRequestContext(r, h.authAudience)
extractor := NewJWTClaimsExtractor(nil)
jwtClaims := extractor.extractClaimsFromRequestContext(r, h.authAudience)
account, err := h.accountManager.GetAccountByUserOrAccountId(jwtClaims.UserId, jwtClaims.AccountId, jwtClaims.Domain)
if err != nil {