We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bd21e8 commit 24f8e85Copy full SHA for 24f8e85
1 file changed
Controllers/UsersController.cs
@@ -72,7 +72,7 @@ string StartSocialLogin(string provider, string returnUrl, string state) {
72
}
73
return config.AuthEndpoint + new QueryBuilder() {
74
{"client_id" , config.ClientId},
75
- {"redirect_uri", (Request.IsHttps ? "https" : "http") + "://" + Request.Host + "/api/users/me/socialLogin-continued"},
+ {"redirect_uri", Request.Scheme.ToLower() + "://" + Request.Host + "/api/users/me/socialLogin-continued"},
76
{"response_type", "code"},
77
{"scope", "openid profile"},
78
{"state", _app.SignToken(new [] { provider, returnUrl, state }, TimeSpan.FromMinutes(30))},
0 commit comments