This commit is contained in:
2026-06-02 17:13:26 +02:00
14 changed files with 474 additions and 25 deletions
+8 -1
View File
@@ -124,7 +124,14 @@ public static class OAuthEndpoints
var tokenKey = Guid.NewGuid().ToString("N");
flowCache.StoreTokens(tokenKey, tokens);
var returnTo = QueryHelpers.AddQueryString(flowState.ReturnUrl, "token_key", tokenKey);
// Pass the profile id back too: the connect flow did a full HTTP redirect that tore
// down the Blazor circuit, dropping the in-memory profile selection. The layout
// re-selects it from this param so the user lands fully connected — no second click.
var returnTo = QueryHelpers.AddQueryString(flowState.ReturnUrl, new Dictionary<string, string?>
{
["token_key"] = tokenKey,
["profile_id"] = flowState.ProfileId,
});
return Results.Redirect(returnTo);
});