示例#1
0
        private DeviceAuthorizationViewModel CreateConsentViewModel(string userCode, DeviceAuthorizationInputModel model, Client client, Resources resources)
        {
            var vm = ConsentViewModelFactory.CreateConsentViewModel(model, client, resources) as DeviceAuthorizationViewModel;

            vm.UserCode = userCode;
            return(vm);
        }
示例#2
0
        private ConsentViewModel CreateConsentViewModel(
            ConsentInputModel model, string returnUrl,
            AuthorizationRequest request,
            Client client, Resources resources)
        {
            var vm = ConsentViewModelFactory.CreateConsentViewModel(model, client, resources);

            vm.ReturnUrl = returnUrl;
            return(vm);
        }