Skip to content

Commit

Permalink
feat: upgrade sdk package version, fix claims refrences (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qinyouzeng authored Aug 23, 2024
1 parent cb0165d commit 4d5f1a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<MicrosoftPackageVersion Condition="'$(TargetFramework)' == 'net7.0'">7.0.0</MicrosoftPackageVersion>
<MicrosoftPackageVersion Condition="'$(TargetFramework)' == 'net8.0'">8.0.0</MicrosoftPackageVersion>
<MasaFrameworkPackageVersion>1.2.0-preview.2</MasaFrameworkPackageVersion>
<MasaStackSdksPackageVersion>1.1.1-preview.10</MasaStackSdksPackageVersion>
<MasaStackSdksPackageVersion>1.2.1-preview.1</MasaStackSdksPackageVersion>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Masa.Blazor.Core.I18n;

namespace Masa.Stack.Components;
namespace Masa.Stack.Components;

public static class ServiceCollectionExtensions
{
Expand Down Expand Up @@ -37,8 +35,8 @@ private static async Task AddMasaStackComponentsServiceAsync(IServiceCollection
services.AddAutoInject();
services.AddMasaIdentity(options =>
{
options.UserName = "name";
options.UserId = "sub";
options.UserName = IdentityClaimConsts.USER_NAME;
options.UserId = IdentityClaimConsts.USER_ID;
options.Role = IdentityClaimConsts.ROLES;
options.Environment = IdentityClaimConsts.ENVIRONMENT;
options.Mapping(nameof(MasaUser.CurrentTeamId), IdentityClaimConsts.CURRENT_TEAM);
Expand Down
6 changes: 3 additions & 3 deletions src/Masa.Stack.Components/_Imports.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
global using IdentityModel.Client;
global using Mapster;
global using Masa.Blazor;
global using Masa.Blazor.Core;
global using Masa.Blazor.Core.I18n;
global using Masa.Blazor.Presets;
global using Masa.BuildingBlocks.Authentication.Identity;
global using Masa.BuildingBlocks.Caching;
global using Masa.BuildingBlocks.Configuration;
global using Masa.BuildingBlocks.StackSdks.Auth;
global using Masa.BuildingBlocks.StackSdks.Auth.Contracts;
global using Masa.BuildingBlocks.StackSdks.Auth.Contracts.Consts;
global using Masa.BuildingBlocks.StackSdks.Auth.Contracts.Enum;
global using Masa.BuildingBlocks.StackSdks.Auth.Contracts.Model;
global using Masa.BuildingBlocks.StackSdks.Config;
global using Masa.BuildingBlocks.StackSdks.Config.Consts;
global using Masa.BuildingBlocks.StackSdks.Isolation;
global using Masa.BuildingBlocks.StackSdks.Mc.Enum;
global using Masa.BuildingBlocks.StackSdks.Mc.Model;
Expand Down Expand Up @@ -71,5 +73,3 @@
global using System.Text.Json.Nodes;
global using System.Text.Json.Serialization;
global using System.Text.RegularExpressions;
global using Masa.Blazor.Core;
global using Masa.Stack.Components.Standalone;

0 comments on commit 4d5f1a9

Please sign in to comment.