Path: redb-identity/src/redb.Identity.Web/Components/Pages/Admin/ApplicationDetailTabs/ApplicationUserAttributesTab.razor Snapshot: redb-identity, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-identity Page: https://redbase.app/src/dev-2026-12-06/redb-identity/src/redb.Identity.Web/Components/Pages/Admin/ApplicationDetailTabs/ApplicationUserAttributesTab.razor ---- @inject IIdentityClient Client @inject ToastService Toast @using redb.Identity.Contracts.ClaimMappers @* ApplicationUserAttributesTab — read-only "what the application gets in issued tokens" view. redb.Identity does not allow per-application attribute toggling (the WSO2 IS 7.x "Select scopes, i.e. grouped user attributes" pattern). Our claim emission is governed by claim mappers + scope assignment; this tab visualises the result without offering a per-app override. Three sections: 1. Standard OIDC scope → claim map (static; mirrors OIDC core §5). Highlights which standard scopes this application has assigned. 2. Custom claim-scopes assigned to this application. Reuses the same query as the Roles tab. 3. Subject identifier configuration. Public (sub = stable user id) is the only mode we ship today; pairwise is on the roadmap (doc/FEATURE_GAPS_VS_WSO2_IS_7X.md §C.6). *@

Standard OIDC scopes

Standard scopes from OIDC core §5. Claims are emitted into the id_token and /userinfo when the application requests the scope at /authorize and the user consents. Scopes this application currently has assigned are highlighted.

@foreach (var s in StandardScopes) { var isAssigned = _appPermissions.Contains("scp:" + s.Name); }
Scope Standard claims Assigned
@s.Name @string.Join(", ", s.Claims) @if (isAssigned) { yes } else { no }

Custom claim-scopes

@if (_loading) {

Loading…

} else if (_assignedScopes.Count == 0) { } else { }

To define a new claim-scope or change which attributes a scope emits, edit Claim Mappers and Claim Scopes.

Subject identifier

Subject type
Public

The sub claim carries the user's stable internal id and is identical across applications. Pairwise pseudonyms (one stable id per application) are on the roadmap — see doc/FEATURE_GAPS_VS_WSO2_IS_7X.md §C.6.

Subject claim
sub

Always sub per OIDC core §2. WSO2's "alternate subject identifier" feature is out of scope — we standardise on the canonical claim name.

@code { [Parameter, EditorRequired] public ApplicationResponse App { get; set; } = default!; private bool _loading = true; private string? _error; private readonly HashSet _appPermissions = new(StringComparer.Ordinal); private readonly List _assignedScopes = new(); private sealed record StandardScope(string Name, string[] Claims); // OIDC core §5 standard scopes and their claim sets. private static readonly StandardScope[] StandardScopes = new[] { new StandardScope("openid", new[] { "sub" }), new StandardScope("profile", new[] { "name", "family_name", "given_name", "middle_name", "nickname", "preferred_username", "profile", "picture", "website", "gender", "birthdate", "zoneinfo", "locale", "updated_at" }), new StandardScope("email", new[] { "email", "email_verified" }), new StandardScope("address", new[] { "address" }), new StandardScope("phone", new[] { "phone_number", "phone_number_verified" }), new StandardScope("offline_access", new[] { "(grants refresh_token; no claims)" }), new StandardScope("roles", new[] { "roles" }), new StandardScope("groups", new[] { "groups" }), }; protected override Task OnParametersSetAsync() => LoadAsync(); private async Task LoadAsync() { _loading = true; _appPermissions.Clear(); _assignedScopes.Clear(); foreach (var p in App.Permissions ?? Array.Empty()) _appPermissions.Add(p); try { var catalogue = await Client.ListClaimScopesAsync(0, 200); var byId = catalogue.Items.ToDictionary(x => x.Id, x => x); var doc = await Client.ListClaimScopeAssignmentsAsync(App.Id); void Visit(JsonElement el) { if (el.TryGetProperty("scopeId", out var sid) && sid.ValueKind == JsonValueKind.String && byId.TryGetValue(sid.GetString()!, out var scope)) { _assignedScopes.Add(scope); } } if (doc.ValueKind == JsonValueKind.Object && doc.TryGetProperty("items", out var arr) && arr.ValueKind == JsonValueKind.Array) { foreach (var el in arr.EnumerateArray()) Visit(el); } else if (doc.ValueKind == JsonValueKind.Array) { foreach (var el in doc.EnumerateArray()) Visit(el); } } catch (Exception ex) { _error = ex.Message; } finally { _loading = false; StateHasChanged(); } } }