public ActionResult Authorize([FromQuery(Name = "response_type")] string responseType, [FromQuery(Name = "client_id")] string clientId, [FromQuery(Name = "state")] string state, [FromQuery(Name = "redirect_uri")] string redirectUri, [FromQuery(Name = "scope")] string scope) { var uri = _authorizeService.GenererateUriForAuthorize(new AskAuthorizeDto() { ClientPublicId = clientId, RedirectUri = redirectUri, ResponseType = responseType, Scope = scope, State = state, UserName = User.Identity.Name }); return(Redirect(uri.AbsoluteUri)); }