Fixed validation of iss and aud when issuer and audience are not set.

This commit is contained in:
Jocelyn Fiat
2017-09-21 10:46:08 +02:00
parent ab507d543a
commit 498e4a6ec2

View File

@@ -59,6 +59,8 @@ feature -- Status report
do do
if attached claimset.issuer as iss then if attached claimset.issuer as iss then
Result := a_issuer = Void or else a_issuer.same_string (iss) Result := a_issuer = Void or else a_issuer.same_string (iss)
else
Result := a_issuer = Void
end end
end end
@@ -66,6 +68,8 @@ feature -- Status report
do do
if attached claimset.audience as aud then if attached claimset.audience as aud then
Result := a_audience = Void or else a_audience.same_string (aud) Result := a_audience = Void or else a_audience.same_string (aud)
else
Result := a_audience = Void
end end
end end