fix requested auth scope
fc9421ae
Michael Schmitz
committed
succeeded
2 changed files
NativeAuthenticationStateProvider.cs
/WPE.App.Authentication.Maui/Business/NativeAuthenticationStateProvider.cs-1+1
/WPE.App.Authentication.Maui/Business/NativeAuthenticationStateProvider.cs
Add comment 59
Add comment 60 private async Task<ClaimsPrincipal> SignInCore(LoginType loginType, string emailOrVoucherCode)
Add comment 61 {
Add comment 62 Minus   var scope = SettingsProvider.DevModeEnabled && SettingsProvider.ServerEnvironment is not AppEnvironment.Prod ? "env.test" : "env.prod";
Add comment 62 Plus   var scope = SettingsProvider.ServerEnvironment is not AppEnvironment.Prod ? "env.test" : "env.prod";
Add comment 63 var authResult = await AuthClient.SignIn(loginType, scope, emailOrVoucherCode);
Add comment 64
Add comment 65 if (authResult.IsError)
WPE.App.Authentication.Maui.csproj
/WPE.App.Authentication.Maui/WPE.App.Authentication.Maui.csproj-2+2
/WPE.App.Authentication.Maui/WPE.App.Authentication.Maui.csproj
Add comment 24 <PackageIcon>icon.png</PackageIcon>
Add comment 25 <PackageReadmeFile>ReadMe.md</PackageReadmeFile>
Add comment 26 <PackageTags>WPE;Workplace Experience;infsoft</PackageTags>
Add comment 27 Minus   <Version>0.3.1</Version>
Add comment 27 Plus   <Version>0.3.2</Version>
Add comment 28 <GenerateDocumentationFile>true</GenerateDocumentationFile>
Add comment 29 </PropertyGroup>
Add comment 30
Add comment 31 <ItemGroup>
Add comment 32 Minus   <PackageReference Include="Infsoft.WPE.App.Authentication.Base" Version="0.4.6" />
Add comment 32 Plus   <PackageReference Include="Infsoft.WPE.App.Authentication.Base" Version="0.4.7" />
Add comment 33 <PackageReference Include="Infsoft.WPE.App.DTO" Version="1.5.0" />
Add comment 34 <PackageReference Include="IdentityModel.OidcClient" Version="6.0.0" />
Add comment 35 <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.6.0" />