Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
use public origin for redirect back to permissions page #2473
Browse files Browse the repository at this point in the history
  • Loading branch information
brockallen committed Jan 25, 2016
1 parent ed2535f commit 854a45d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/Core/Endpoints/ClientPermissionsController.cs
Expand Up @@ -113,7 +113,9 @@ public async Task<IHttpActionResult> RevokePermission(RevokeClientPermission mod

Logger.Info("Redirecting back to permissions page");

return RedirectToRoute(Constants.RouteNames.ClientPermissions, null);
var url = Request.GetOwinContext().GetIdentityServerBaseUrl().EnsureTrailingSlash() +
Constants.RoutePaths.ClientPermissions;
return Redirect(url);
}

private IHttpActionResult RedirectToLogin()
Expand Down

0 comments on commit 854a45d

Please sign in to comment.