Skip to content

Commit

Permalink
Use predefined standard OIDC parameters instead
Browse files Browse the repository at this point in the history
Signed-off-by: Gehongyan <[email protected]>
  • Loading branch information
kevinchalet authored and gehongyan committed Feb 25, 2025
1 parent c42ed85 commit d2209f8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1859,7 +1859,7 @@ public ValueTask HandleAsync(ProcessChallengeContext context)
{
var settings = context.Registration.GetActiveDirectoryFederationServicesSettings();

context.Request["resource"] = settings.Resource;
context.Request.Resources = [settings.Resource];
}

// By default, Alibaba Cloud doesn't return a refresh token for native applications but allows sending an
Expand All @@ -1871,7 +1871,7 @@ public ValueTask HandleAsync(ProcessChallengeContext context)
var settings = context.Registration.GetAlibabaCloudSettings();

context.Request["access_type"] = settings.AccessType;
context.Request["prompt"] = settings.Prompt;
context.Request.Prompt = settings.Prompt;
}

// Atlassian requires sending an "audience" parameter (by default, "api.atlassian.com").
Expand Down Expand Up @@ -1911,7 +1911,7 @@ public ValueTask HandleAsync(ProcessChallengeContext context)
var settings = context.Registration.GetHuaweiSettings();

context.Request["access_type"] = settings.AccessType;
context.Request["display"] = settings.Display;
context.Request.Display = settings.Display;
}

// By default, MusicBrainz doesn't return a refresh token but allows sending an "access_type"
Expand Down Expand Up @@ -1968,7 +1968,7 @@ public ValueTask HandleAsync(ProcessChallengeContext context)
{
var settings = context.Registration.GetWeiboSettings();

context.Request["display"] = settings.Display;
context.Request.Display = settings.Display;
context.Request["forcelogin"] = settings.ForceLogin;
context.Request["language"] = settings.Language;
}
Expand Down

0 comments on commit d2209f8

Please sign in to comment.