Skip to content
Snippets Groups Projects
Commit bf6afd0f authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Fixed Shibboleth Return Url

parent b55aff3c
No related branches found
No related tags found
1 merge request!134BREAKING: Migrated login to the new UI
......@@ -135,6 +135,7 @@ namespace Coscine.Api.STS.Controllers
result = await _signInManager.UserManager.AddLoginAsync(coscineUser, info);
await _signInManager.SignInAsync(coscineUser, isPersistent: false);
returnUrl = Program.MainUrl + "/?redirect=" + ((returnUrl != null) ? Uri.EscapeDataString(returnUrl) : "");
return Redirect(UrlGenerator.ExtendReturnUrl(returnUrl, Request));
}
......@@ -147,7 +148,7 @@ namespace Coscine.Api.STS.Controllers
/// <param name="entityId">Specific Identitiy Provider to be redirect to</param>
/// <returns>ChallengeResult</returns>
[Route("[controller]/login")]
public ActionResult Login(string returnUrl = "/", string entityId = null)
public ActionResult Login(string returnUrl = null, string entityId = null)
{
var provider = "Saml2";
var redirectUrl = Program.MainUrl + "/Shibboleth/callback?returnUrl=" + returnUrl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment