Skip to content

Commit

Permalink
Fix value null
Browse files Browse the repository at this point in the history
  • Loading branch information
aorzelskiGH committed Jun 10, 2024
1 parent 78fa4ae commit 765fa90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/AasxServerStandardBib/SecurityClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,10 @@ static void operation_authenticate(Operation op, int envIndex, DateTime timeStam
if (authServerEndPoint != null && authServerCertificate != null && clientCertificate != null
&& accessToken != null)
{
if (!string.IsNullOrWhiteSpace(accessToken.Value))
if (accessToken.Value == null)
accessToken.Value = "";

if (accessToken.Value != "")
{
bool valid = true;
var jwtToken = new JwtSecurityToken(accessToken.Value);
Expand Down

0 comments on commit 765fa90

Please sign in to comment.