Merge branch 'main' of https://git.azuze.fr/kawa/SharepointToolbox-Web
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user