From 2b248d737bbb3b7dcb68377db37ce00fcccaf6a3 Mon Sep 17 00:00:00 2001 From: Sietse Ringers Date: Thu, 25 Mar 2021 16:39:50 +0100 Subject: [PATCH] feat: always allow pairing when using chained sessions --- server/irmaserver/api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/irmaserver/api.go b/server/irmaserver/api.go index 0c00f393c..c87d4dcc2 100644 --- a/server/irmaserver/api.go +++ b/server/irmaserver/api.go @@ -196,7 +196,9 @@ func (s *Server) StartSession(req interface{}, handler server.SessionHandler, } pairingRecommended := false - if action == irma.ActionDisclosing { + if rrequest.Base().NextSession != nil && rrequest.Base().NextSession.URL != "" { + pairingRecommended = true + } else if action == irma.ActionDisclosing { err := request.Disclosure().Disclose.Iterate(func(attr *irma.AttributeRequest) error { if attr.Value != nil { pairingRecommended = true