Browse Source

Example short usage patterns have been added. Example abbreviations applicable to the whole project

pull/1756/head
veysel mutlu 3 years ago
parent
commit
4bfa1c03df
3 changed files with 3 additions and 8 deletions
  1. +1
    -4
      src/Services/Identity/Identity.API/Devspaces/DevspacesRedirectUriValidator.cs
  2. +0
    -4
      src/Services/Identity/Identity.API/Identity.API.csproj
  3. +2
    -0
      src/Services/Identity/Identity.API/Services/ProfileService.cs

+ 1
- 4
src/Services/Identity/Identity.API/Devspaces/DevspacesRedirectUriValidator.cs View File

@ -9,10 +9,7 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API.Devspaces
public class DevspacesRedirectUriValidator : IRedirectUriValidator
{
private readonly ILogger _logger;
public DevspacesRedirectUriValidator(ILogger<DevspacesRedirectUriValidator> logger)
{
_logger = logger;
}
public DevspacesRedirectUriValidator(ILogger<DevspacesRedirectUriValidator> logger) => (_logger) = (logger);
public Task<bool> IsPostLogoutRedirectUriValidAsync(string requestedUri, Client client)
{


+ 0
- 4
src/Services/Identity/Identity.API/Identity.API.csproj View File

@ -63,8 +63,4 @@
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="Extensions\" />
</ItemGroup>
</Project>

+ 2
- 0
src/Services/Identity/Identity.API/Services/ProfileService.cs View File

@ -21,6 +21,8 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API.Services
_userManager = userManager;
}
//New Method ArgumentNullException.ThrowIfNull (obj) Added to .NET 6
//https://davidshergilashvili.space/2021/09/08/new-method-argumentnullexception-throwifnull-obj-added-to-net-6/
async public Task GetProfileDataAsync(ProfileDataRequestContext context)
{
var subject = context.Subject ?? throw new ArgumentNullException(nameof(context.Subject));


Loading…
Cancel
Save