Fixed validation of iss and aud when issuer and audience are not set.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user