diff --git a/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs b/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs index 97ac35aa..7b399909 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs @@ -36,9 +36,9 @@ public class UserController : ControllerBase [AllowAnonymous] [HttpGet("/sso/{provider}")] - public async Task Authorize([FromRoute] string provider,string redirectHost) + public async Task Authorize([FromRoute] string provider,string redirecturl) { - return Challenge(new AuthenticationProperties { RedirectUri = $"{redirectHost}/page/user/me" }, provider); + return Challenge(new AuthenticationProperties { RedirectUri = redirecturl }, provider); } [AllowAnonymous]