LEFT | RIGHT |
1 /* | 1 // This file is added automatically by the MVC 5 application template. |
2 Copyright 2015 Google Inc | 2 // Some unnecessary code has been removed for the purpose of this sample. |
3 | |
4 Licensed under the Apache License, Version 2.0(the "License"); | |
5 you may not use this file except in compliance with the License. | |
6 You may obtain a copy of the License at | |
7 | |
8 http://www.apache.org/licenses/LICENSE-2.0 | |
9 | |
10 Unless required by applicable law or agreed to in writing, software | |
11 distributed under the License is distributed on an "AS IS" BASIS, | |
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 See the License for the specific language governing permissions and | |
14 limitations under the License. | |
15 */ | |
16 | 3 |
17 using System.Threading.Tasks; | 4 using System.Threading.Tasks; |
18 using System.Web; | 5 using System.Web; |
19 using System.Web.Mvc; | 6 using System.Web.Mvc; |
20 using Microsoft.AspNet.Identity; | 7 using Microsoft.AspNet.Identity; |
21 using Microsoft.AspNet.Identity.Owin; | 8 using Microsoft.AspNet.Identity.Owin; |
22 using Microsoft.Owin.Security; | 9 using Microsoft.Owin.Security; |
| 10 |
23 using Calendar.ASP.NET.MVC5.Models; | 11 using Calendar.ASP.NET.MVC5.Models; |
24 | 12 |
25 namespace Calendar.ASP.NET.MVC5.Controllers | 13 namespace Calendar.ASP.NET.MVC5.Controllers |
26 { | 14 { |
27 [Authorize] | 15 [Authorize] |
28 public class AccountController : Controller | 16 public class AccountController : Controller |
29 { | 17 { |
30 private ApplicationSignInManager _signInManager; | 18 private ApplicationSignInManager _signInManager; |
31 private ApplicationUserManager _userManager; | 19 private ApplicationUserManager _userManager; |
32 | 20 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 if (UserId != null) | 231 if (UserId != null) |
244 { | 232 { |
245 properties.Dictionary[XsrfKey] = UserId; | 233 properties.Dictionary[XsrfKey] = UserId; |
246 } | 234 } |
247 context.HttpContext.GetOwinContext().Authentication.Challenge(pr
operties, LoginProvider); | 235 context.HttpContext.GetOwinContext().Authentication.Challenge(pr
operties, LoginProvider); |
248 } | 236 } |
249 } | 237 } |
250 #endregion | 238 #endregion |
251 } | 239 } |
252 } | 240 } |
LEFT | RIGHT |