Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        public ActionResult RopcLogin(string userName)
        {
            var model = new RopcLoginModel()
            {
                Username = userName
            };

            return(View(model));
        }