mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
stopped manually encoding the SSO user_identifier (#913)
This commit is contained in:
@ -731,8 +731,7 @@ namespace Bit.Api.Controllers
|
||||
{
|
||||
var user = await _userService.GetUserByPrincipalAsync(User);
|
||||
var token = await _userService.GenerateSignInTokenAsync(user, TokenPurposes.LinkSso);
|
||||
var bytes = Encoding.UTF8.GetBytes($"{user.Id},{token}");
|
||||
var userIdentifier = Convert.ToBase64String(bytes);
|
||||
var userIdentifier = $"{user.Id},{token}";
|
||||
return userIdentifier;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user