@@ -100,10 +100,11 @@ public async Task<ActionResult> Exchange()
100
100
// Validate the username/password parameters and ensure the account is not locked out.
101
101
var result = await _signInManager . CheckPasswordSignInAsync ( user , openIdConnectRequest . Password , lockoutOnFailure : true ) ;
102
102
103
+ var storeId = openIdConnectRequest . GetParameter ( "storeId" ) ;
103
104
var context = new Dictionary < string , object > ( StringComparer . OrdinalIgnoreCase )
104
105
{
105
106
{ "detailedErrors" , _passwordLoginOptions . DetailedErrors } ,
106
- { "storeId" , openIdConnectRequest . Scope } ,
107
+ { "storeId" , storeId ? . Value } ,
107
108
} ;
108
109
109
110
foreach ( var loginValidation in _userSignInValidators . OrderByDescending ( x => x . Priority ) . ThenBy ( x => x . GetType ( ) . Name ) )
@@ -150,7 +151,7 @@ public async Task<ActionResult> Exchange()
150
151
// Create a new authentication ticket, but reuse the properties stored in the
151
152
// authorization code/refresh token, including the scopes originally granted.
152
153
var ticket = await CreateTicketAsync ( openIdConnectRequest , user , info . Properties ) ;
153
- return SignIn ( ticket . Principal , ticket . Properties , ticket . AuthenticationScheme ) ;
154
+ return SignIn ( ticket . Principal , ticket . AuthenticationScheme ) ;
154
155
}
155
156
else if ( openIdConnectRequest . IsClientCredentialsGrantType ( ) )
156
157
{
0 commit comments