public async Task <ActionResult> RopcLogin(RopcLoginModel model) { IAuthService authenticationService = new AuthService(Startup.TokenEndpoint, Startup.ClientId); AuthResult authenticationResult = await authenticationService.AuthorizeAsync(model.Username, model.Password, Startup.Scopes); model.Result = authenticationResult; return(View(model)); }
public ActionResult RopcLogin(string userName) { var model = new RopcLoginModel() { Username = userName }; return(View(model)); }