Skip to content

Commit 09cdaf5

Browse files
docs: add clarification on user ID usage in MetadataLookup
- Added a comment in the MetadataLookup method to clarify that the user ID serves as the unique identifier for users across the system, enhancing code readability and understanding. Jira Ticket: https://linuxfoundation.atlassian.net/browse/LFXV2-588 Signed-off-by: Mauricio Zanetti Salomao <mauriciozanetti86@gmail.com>
1 parent 0d92260 commit 09cdaf5

File tree

1 file changed

+1
-0
lines changed
  • internal/infrastructure/authelia

1 file changed

+1
-0
lines changed

internal/infrastructure/authelia/user.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ func (u *userReaderWriter) MetadataLookup(ctx context.Context, input string, use
146146
return false
147147
}
148148
user.Sub = sub.String()
149+
// user ID is used across the system as the unique identifier for the user
149150
user.UserID = sub.String()
150151
return true
151152
}

0 commit comments

Comments
 (0)