1- using System ;
2- using System . Collections . Generic ;
3- using System . ComponentModel . DataAnnotations ;
4- using System . Linq ;
5- using System . Security . Claims ;
6- using System . Text ;
7- using System . Text . Encodings . Web ;
8- using System . Threading . Tasks ;
9- using Microsoft . AspNetCore . Authorization ;
1+ using Microsoft . AspNetCore . Authorization ;
102using Microsoft . AspNetCore . Identity ;
113using Microsoft . AspNetCore . Identity . UI . Services ;
124using Microsoft . AspNetCore . Mvc ;
135using Microsoft . AspNetCore . Mvc . RazorPages ;
146using Microsoft . AspNetCore . WebUtilities ;
157using Microsoft . Extensions . Logging ;
8+ using System . ComponentModel . DataAnnotations ;
9+ using System . Security . Claims ;
10+ using System . Text ;
11+ using System . Text . Encodings . Web ;
12+ using System . Threading . Tasks ;
1613
1714namespace WebAppOglas . Areas . Identity . Pages . Account
1815{
@@ -72,7 +69,7 @@ public async Task<IActionResult> OnGetCallbackAsync(string returnUrl = null, str
7269 if ( remoteError != null )
7370 {
7471 ErrorMessage = $ "Error from external provider: { remoteError } ";
75- return RedirectToPage ( "./Login" , new { ReturnUrl = returnUrl } ) ;
72+ return RedirectToPage ( "./Login" , new { ReturnUrl = returnUrl } ) ;
7673 }
7774 var info = await _signInManager . GetExternalLoginInfoAsync ( ) ;
7875 if ( info == null )
@@ -82,7 +79,7 @@ public async Task<IActionResult> OnGetCallbackAsync(string returnUrl = null, str
8279 }
8380
8481 // Sign in the user with this external login provider if the user already has a login.
85- var result = await _signInManager . ExternalLoginSignInAsync ( info . LoginProvider , info . ProviderKey , isPersistent : false , bypassTwoFactor : true ) ;
82+ var result = await _signInManager . ExternalLoginSignInAsync ( info . LoginProvider , info . ProviderKey , isPersistent : false , bypassTwoFactor : true ) ;
8683 if ( result . Succeeded )
8784 {
8885 _logger . LogInformation ( "{Name} logged in with {LoginProvider} provider." , info . Principal . Identity . Name , info . LoginProvider ) ;
0 commit comments