[Blazor] Adds an authentication library for Blazor webassembly (#18851)
* Adds a Microsoft.AspNetCore.Components.WebAssembly.Authentication library for performing authentication in Blazor webassembly. * Includes a default implementation that supports OIDC capable IdPs using oidc-client.js * Includes multiple primitives to deal with authentication flows and supports acquiring access tokens to call APIs. * RemoteAuthenticatorView is responsible for handling authentication operations at the user interface level. * RemoteAuthenticatorService is responsible for handling the lower level authentication details by using JavaScript interop to interact with the underlying javascript library implementing the auth protocol. * SignOutSessionStateManager handles CSRF protection for the logout path. * IAccessTokenProvider handles provisioning access tokens to call APIs.
显示
- eng/Dependencies.props 3 个添加, 0 个删除eng/Dependencies.props
- eng/ProjectReferences.props 1 个添加, 0 个删除eng/ProjectReferences.props
- eng/Versions.props 8 个添加, 0 个删除eng/Versions.props
- src/Components/Blazor.sln 78 个添加, 0 个删除src/Components/Blazor.sln
- src/Components/Blazor/WebAssembly.Authentication/src/DefaultRemoteApplicationPathsProvider.cs 20 个添加, 0 个删除...thentication/src/DefaultRemoteApplicationPathsProvider.cs
- src/Components/Blazor/WebAssembly.Authentication/src/IRemoteAuthenticationPathsProvider.cs 20 个添加, 0 个删除....Authentication/src/IRemoteAuthenticationPathsProvider.cs
- src/Components/Blazor/WebAssembly.Authentication/src/Interop/AuthenticationService.ts 312 个添加, 0 个删除...embly.Authentication/src/Interop/AuthenticationService.ts
- src/Components/Blazor/WebAssembly.Authentication/src/Interop/dist/.gitignore 2 个添加, 0 个删除...or/WebAssembly.Authentication/src/Interop/dist/.gitignore
- src/Components/Blazor/WebAssembly.Authentication/src/Interop/package.json 17 个添加, 0 个删除...lazor/WebAssembly.Authentication/src/Interop/package.json
- src/Components/Blazor/WebAssembly.Authentication/src/Interop/tsconfig.json 11 个添加, 0 个删除...azor/WebAssembly.Authentication/src/Interop/tsconfig.json
- src/Components/Blazor/WebAssembly.Authentication/src/Interop/webpack.config.js 25 个添加, 0 个删除.../WebAssembly.Authentication/src/Interop/webpack.config.js
- src/Components/Blazor/WebAssembly.Authentication/src/Interop/yarn.lock 2737 个添加, 0 个删除...s/Blazor/WebAssembly.Authentication/src/Interop/yarn.lock
- src/Components/Blazor/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj 83 个添加, 0 个删除...t.AspNetCore.Components.WebAssembly.Authentication.csproj
- src/Components/Blazor/WebAssembly.Authentication/src/Models/AccessToken.cs 28 个添加, 0 个删除...azor/WebAssembly.Authentication/src/Models/AccessToken.cs
- src/Components/Blazor/WebAssembly.Authentication/src/Models/RemoteAuthenticationActions.cs 64 个添加, 0 个删除....Authentication/src/Models/RemoteAuthenticationActions.cs
- src/Components/Blazor/WebAssembly.Authentication/src/Models/RemoteAuthenticationContext.cs 22 个添加, 0 个删除....Authentication/src/Models/RemoteAuthenticationContext.cs
- src/Components/Blazor/WebAssembly.Authentication/src/Models/RemoteAuthenticationResult.cs 27 个添加, 0 个删除...y.Authentication/src/Models/RemoteAuthenticationResult.cs
- src/Components/Blazor/WebAssembly.Authentication/src/Models/RemoteAuthenticationState.cs 17 个添加, 0 个删除...ly.Authentication/src/Models/RemoteAuthenticationState.cs
- src/Components/Blazor/WebAssembly.Authentication/src/Models/RemoteAuthenticationStatus.cs 32 个添加, 0 个删除...y.Authentication/src/Models/RemoteAuthenticationStatus.cs
- src/Components/Blazor/WebAssembly.Authentication/src/Options/ApiAuthorizationProviderOptions.cs 16 个添加, 0 个删除...entication/src/Options/ApiAuthorizationProviderOptions.cs
加载中
想要评论请 注册 或 登录