Skip to content

Commit

Permalink
Merge pull request #128 from bcgov/yj
Browse files Browse the repository at this point in the history
chore: disable becid web service call
  • Loading branch information
ychung-mot authored Apr 15, 2024
2 parents df6e593 + 81454d4 commit 685e219
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions server/StrDss.Service/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,21 @@ public async Task<Dictionary<string, List<string>>> CreateAccessRequestAsync(Acc
return errors;
}

if (_currentUser.IdentityProviderNm == StrDssIdProviders.BceidBusiness)
{
var (error, account) = await _bceid.GetBceidAccountCachedAsync(_currentUser.UserGuid, "", StrDssIdProviders.BceidBusiness, _currentUser.UserGuid, _currentUser.IdentityProviderNm);

if (account == null)
{
_logger.LogError($"BCeID call error: {error}");
}

if (account != null)
{
_currentUser.FirstName = account.FirstName;
_currentUser.LastName = account.LastName;
}
}
//if (_currentUser.IdentityProviderNm == StrDssIdProviders.BceidBusiness)
//{
// var (error, account) = await _bceid.GetBceidAccountCachedAsync(_currentUser.UserGuid, "", StrDssIdProviders.BceidBusiness, _currentUser.UserGuid, _currentUser.IdentityProviderNm);

// if (account == null)
// {
// _logger.LogError($"BCeID call error: {error}");
// }

// if (account != null)
// {
// _currentUser.FirstName = account.FirstName;
// _currentUser.LastName = account.LastName;
// }
//}

if (userDto == null)
{
Expand Down

0 comments on commit 685e219

Please sign in to comment.