Commit 6ab21ac9 authored by David Venhoek's avatar David Venhoek Committed by Sietse Ringers
Browse files

Fix: Changed generation of jwt to match legacy format.

parent dedd7890
Pipeline #22263 passed with stages
in 9 minutes and 28 seconds
......@@ -375,9 +375,9 @@ func (s *Server) handleJwtProofs(w http.ResponseWriter, r *http.Request) {
// Fill standard claims
switch res.Type {
case irma.ActionDisclosing:
claims["subject"] = "verification_result"
claims["sub"] = "disclosure_result"
case irma.ActionSigning:
claims["subject"] = "abs_result"
claims["sub"] = "abs_result"
default:
if res == nil {
server.WriteError(w, server.ErrorInvalidRequest, "")
......@@ -388,7 +388,7 @@ func (s *Server) handleJwtProofs(w http.ResponseWriter, r *http.Request) {
if s.conf.JwtIssuer != "" {
claims["iss"] = s.conf.JwtIssuer
}
claims["status"] = res.Status
claims["status"] = res.ProofStatus
validity := s.irmaserv.GetRequest(sessiontoken).Base().ResultJwtValidity
if validity != 0 {
claims["exp"] = time.Now().Unix() + int64(validity)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment