Skip to content

Commit 6ed01e2

Browse files
Make sure localtest 'isAuthenticated' argument is set correctly in 'AuthenticationContext' (#1209)
1 parent 598da0d commit 6ed01e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Altinn.App.Core/Features/Auth/AuthenticationContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public Authenticated Current
6969
{
7070
authInfo = Authenticated.FromLocalTest(
7171
tokenStr: token,
72-
isAuthenticated: true,
72+
isAuthenticated: !string.IsNullOrWhiteSpace(token),
7373
_appConfigurationCache.ApplicationMetadata,
7474
() => _httpContext.Request.Cookies[_generalSettings.CurrentValue.GetAltinnPartyCookieName],
7575
_profileClient.GetUserProfile,

0 commit comments

Comments
 (0)