impl native auth for wpe 3.0
83c1af65
Michael Schmitz
committed
29 changed files
AuthClient.cs
/WPE.App.Authentication.Native/Business/Flow/AuthClient.cs
/WPE.App.Authentication.Native/Business/Flow/AuthClient.cs
IAuthClient.cs
/WPE.App.Authentication.Native/Business/Flow/IAuthClient.cs-2+3
/WPE.App.Authentication.Native/Business/Flow/IAuthClient.cs
Renamed from
/WPE.App.Shared.Authentication.Native/Business/Flow/IAuthClient.cs
Add comment 1 using IdentityModel.OidcClient;
Add comment 2 using IdentityModel.OidcClient.Results;
Add comment 3
Add comment 4 Minus  namespace Infsoft.WPE.App.Shared.Authentication.Native.Business.Flow
Add comment 4 Plus  namespace Infsoft.WPE.App.Authentication.Native.Business.Flow
Add comment 5 {
Add comment 6 /// <summary>
Add comment 7 /// OIDC auth client
Add comment 12 /// Start a login and resolve tokens
Add comment 13 /// </summary>
Add comment 14 /// <returns>Result of login flow, contains all tokens if successfull</returns>
Add comment 15 Minus   Task<LoginResult> LoginAsync();
Add comment 15 Plus   Task<LoginResult> SignIn(string scope, bool customerLogin, string? voucher);
Add comment 16
Add comment 17 /// <summary>
Add comment 18 /// Refresh all tokens with given refresh token and resolve them
Add comment 20 /// <param name="refreshToken">Token to authenticate refresh</param>
Add comment 21 /// <returns>Result of token refresh, contains all tokens if successfull</returns>
Add comment 22 Task<RefreshTokenResult> RefreshTokens(string refreshToken);
Add comment 23 Plus   Task SignOut();
Add comment 23 24 }
Add comment 24 25 }
IAuthenticatorProvider.cs
/WPE.App.Authentication.Native/Business/Flow/IAuthenticatorProvider.cs-1+1
/WPE.App.Authentication.Native/Business/Flow/IAuthenticatorProvider.cs
Renamed from
/WPE.App.Shared.Authentication.Native/Business/Flow/IAuthenticatorProvider.cs
Add comment 1 Minus  namespace Infsoft.WPE.App.Shared.Authentication.Native.Business.Flow
Add comment 1 Plus  namespace Infsoft.WPE.App.Authentication.Native.Business.Flow
Add comment 2 {
Add comment 3 /// <summary>
Add comment 4 /// Provides the WebAuthenticator to use, allows for platform dependend implementations
WebAuthenticatorProvider.cs
/WPE.App.Authentication.Native/Business/Flow/WebAuthenticatorProvider.cs
/WPE.App.Authentication.Native/Business/Flow/WebAuthenticatorProvider.cs
Renamed from
/WPE.App.Shared.Authentication.Native/Business/Flow/WebAuthenticatorProvider.cs
WebBrowserAuthenticator.cs
/WPE.App.Authentication.Native/Business/Flow/WebBrowserAuthenticator.cs
/WPE.App.Authentication.Native/Business/Flow/WebBrowserAuthenticator.cs
Renamed from
/WPE.App.Shared.Authentication.Native/Business/Flow/WebBrowserAuthenticator.cs
ISecureTokenStorage.cs
/WPE.App.Authentication.Native/Business/Token/ISecureTokenStorage.cs
/WPE.App.Authentication.Native/Business/Token/ISecureTokenStorage.cs
Renamed from
/WPE.App.Shared.Authentication.Native/Business/Token/ISecureTokenStorage.cs
ITokenManager.cs
/WPE.App.Authentication.Native/Business/Token/ITokenManager.cs
/WPE.App.Authentication.Native/Business/Token/ITokenManager.cs
Renamed from
/WPE.App.Shared.Authentication.Native/Business/Token/ITokenManager.cs
SecureTokenStorage.cs
/WPE.App.Authentication.Native/Business/Token/SecureTokenStorage.cs
/WPE.App.Authentication.Native/Business/Token/SecureTokenStorage.cs
Renamed from
/WPE.App.Shared.Authentication.Native/Business/Token/SecureTokenStorage.cs
TokenManager.cs
/WPE.App.Authentication.Native/Business/Token/TokenManager.cs
/WPE.App.Authentication.Native/Business/Token/TokenManager.cs
Renamed from
/WPE.App.Shared.Authentication.Native/Business/Token/TokenManager.cs
AuthorizationMessageHandler.cs
/WPE.App.Authentication.Native/Business/AuthorizationMessageHandler.cs
/WPE.App.Authentication.Native/Business/AuthorizationMessageHandler.cs
NativeAuthenticationStateProvider.cs
/WPE.App.Authentication.Native/Business/NativeAuthenticationStateProvider.cs
/WPE.App.Authentication.Native/Business/NativeAuthenticationStateProvider.cs
AuthenticationConfiguration.cs
/WPE.App.Authentication.Native/Models/AuthenticationConfiguration.cs
/WPE.App.Authentication.Native/Models/AuthenticationConfiguration.cs
AuthPage.cs
/WPE.App.Authentication.Native/Platforms/Windows/AuthPage.cs
/WPE.App.Authentication.Native/Platforms/Windows/AuthPage.cs
Renamed from
/WPE.App.Shared.Authentication.Native/Platforms/Windows/AuthPage.cs
CustomWebAuthenticatorProvider.cs
/WPE.App.Authentication.Native/Platforms/Windows/CustomWebAuthenticatorProvider.cs
/WPE.App.Authentication.Native/Platforms/Windows/CustomWebAuthenticatorProvider.cs
Renamed from
/WPE.App.Shared.Authentication.Native/Platforms/Windows/CustomWebAuthenticatorProvider.cs
WorkaroundWebAuthenticator.cs
/WPE.App.Authentication.Native/Platforms/Windows/WorkaroundWebAuthenticator.cs
/WPE.App.Authentication.Native/Platforms/Windows/WorkaroundWebAuthenticator.cs
Renamed from
/WPE.App.Shared.Authentication.Native/Platforms/Windows/WorkaroundWebAuthenticator.cs
ServiceCollectionExtensions.cs
/WPE.App.Authentication.Native/ServiceCollectionExtensions.cs
/WPE.App.Authentication.Native/ServiceCollectionExtensions.cs
WPE.App.Authentication.Native.csproj
/WPE.App.Authentication.Native/WPE.App.Authentication.Native.csproj
/WPE.App.Authentication.Native/WPE.App.Authentication.Native.csproj
Renamed from
/WPE.App.Shared.Authentication.Native/WPE.App.Shared.Authentication.Native.csproj
AuthClient.cs
/WPE.App.Shared.Authentication.Native/Business/Flow/AuthClient.cs
/WPE.App.Shared.Authentication.Native/Business/Flow/AuthClient.cs
OpenIDAuthenticationStateProvider.cs
/WPE.App.Shared.Authentication.Native/Business/Flow/OpenIDAuthenticationStateProvider.cs
/WPE.App.Shared.Authentication.Native/Business/Flow/OpenIDAuthenticationStateProvider.cs
AuthenticationConfigurationService.cs
/WPE.App.Shared.Authentication.Native/Business/AuthenticationConfigurationService.cs
/WPE.App.Shared.Authentication.Native/Business/AuthenticationConfigurationService.cs
IAuthenticationConfigurationService.cs
/WPE.App.Shared.Authentication.Native/Business/IAuthenticationConfigurationService.cs
/WPE.App.Shared.Authentication.Native/Business/IAuthenticationConfigurationService.cs
IAuthenticationStateProvider.cs
/WPE.App.Shared.Authentication.Native/Business/IAuthenticationStateProvider.cs
/WPE.App.Shared.Authentication.Native/Business/IAuthenticationStateProvider.cs
LoginService.cs
/WPE.App.Shared.Authentication.Native/Business/LoginService.cs
/WPE.App.Shared.Authentication.Native/Business/LoginService.cs
AuthenticationConfiguration.cs
/WPE.App.Shared.Authentication.Native/Models/AuthenticationConfiguration.cs
/WPE.App.Shared.Authentication.Native/Models/AuthenticationConfiguration.cs
ServiceCollectionExtensions.cs
/WPE.App.Shared.Authentication.Native/ServiceCollectionExtensions.cs
/WPE.App.Shared.Authentication.Native/ServiceCollectionExtensions.cs
azure-pipelines.yml
/azure-pipelines.yml
/azure-pipelines.yml
LICENSE
/LICENSE
/LICENSE
ReadMe.md
/ReadMe.md
/ReadMe.md
WPE.App.Authentication.Native.sln
/WPE.App.Authentication.Native.sln
/WPE.App.Authentication.Native.sln
Renamed from
/WPE.App.Shared.Authentication.Native.sln