Update README.md

This commit is contained in:
2026-04-15 11:17:51 +02:00
committed by Dev
parent b33c0769d4
commit 6e05d26114
7 changed files with 46 additions and 10 deletions

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);