Update README.md

This commit is contained in:
kawa authored and Dev committed 2026-04-15 14:27:31 +02:00
1 parent b33c0769d4
commit 6e05d26114
7 files changed
+46 -10

No files matched your search

+3 -2
View File
@@ -24,8 +24,9 @@ public class ProfileService
!Uri.TryCreate(profile.TenantUrl, UriKind.Absolute, out _))
throw new ArgumentException("TenantUrl must be a valid absolute URL.", nameof(profile));
if (string.IsNullOrWhiteSpace(profile.ClientId))
throw new ArgumentException("ClientId must not be empty.", nameof(profile));
// ClientId is optional at creation time: the user can register the app from within
// the tool, which will populate ClientId/AppId on the profile afterwards.
profile.ClientId ??= string.Empty;
var existing = (await _repository.LoadAsync()).ToList();
existing.Add(profile);