@model MemberCenter.TestSite.Models.TestDashboardViewModel
@{
ViewData["Title"] = "Member Center Test Site";
string ShortToken(string? token) => string.IsNullOrWhiteSpace(token)
? "not set"
: $"{token[..Math.Min(18, token.Length)]}...";
}
Member Center Integration Test
API / Redirect Login Happy Paths
This test site stores tokens in its own ASP.NET session and runs the first 10 happy-path checks against Member Center.
Current Settings
- API Base URL
- @Model.Options.ApiBaseUrl
- web_login Client ID
- @(string.IsNullOrWhiteSpace(Model.Options.WebLoginClientId) ? "not configured" : Model.Options.WebLoginClientId)
- Service Client ID
- @(string.IsNullOrWhiteSpace(Model.Options.ServiceClientId) ? "not configured" : Model.Options.ServiceClientId)
- User token
- @ShortToken(Model.UserAccessToken)
- Service token
- @ShortToken(Model.ServiceAccessToken)
1. Redirect Login
Uses usage=web_login, Authorization Code + PKCE, and this site's /auth/callback.
2. API Login
Service Token
Required for checks 9 and 10.
Service Token Happy Paths
Use a service token with at least profile:basic.read and profile:addresses.read.
Last Response
@(Model.LastResponseTitle ?? "No request yet")
@(Model.LastResponseBody ?? "Run a happy-path action to see the response here.")