├── .gitignore ├── README.md ├── Sample.sln ├── global.json └── src └── WebApp ├── Controllers └── ValuesController.cs ├── Middleware ├── MiddlewareExtensions.cs └── Platform │ ├── Events │ ├── BasePlatformContext.cs │ ├── IPlatformAuthenticationEvents.cs │ ├── PlatformAuthenticationEvents.cs │ ├── PlatformRedirectContext.cs │ ├── PlatformSigningOutContext.cs │ └── PlatformValidatePrincipalContext.cs │ ├── IUserSessionStore.cs │ ├── PlatformAuthenticationDefaults.cs │ ├── PlatformAuthenticationHandler.cs │ ├── PlatformAuthenticationMiddleware.cs │ └── PlatformAuthenticationOptions.cs ├── Models └── AppUser.cs ├── Program.cs ├── Project_Readme.html ├── Properties └── launchSettings.json ├── Services ├── IPlatformService.cs ├── PlatformService.cs └── UserSessionStore.cs ├── Startup.cs ├── WebApp.xproj ├── appsettings.json ├── project.json └── web.config /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PlatformAuthMiddleware 2 | asp.net core 身份验证中间件 3 | -------------------------------------------------------------------------------- /Sample.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/Sample.sln -------------------------------------------------------------------------------- /global.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/global.json -------------------------------------------------------------------------------- /src/WebApp/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /src/WebApp/Middleware/MiddlewareExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Middleware/MiddlewareExtensions.cs -------------------------------------------------------------------------------- /src/WebApp/Middleware/Platform/Events/BasePlatformContext.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Middleware/Platform/Events/BasePlatformContext.cs -------------------------------------------------------------------------------- /src/WebApp/Middleware/Platform/Events/IPlatformAuthenticationEvents.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Middleware/Platform/Events/IPlatformAuthenticationEvents.cs -------------------------------------------------------------------------------- /src/WebApp/Middleware/Platform/Events/PlatformAuthenticationEvents.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Middleware/Platform/Events/PlatformAuthenticationEvents.cs -------------------------------------------------------------------------------- /src/WebApp/Middleware/Platform/Events/PlatformRedirectContext.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Middleware/Platform/Events/PlatformRedirectContext.cs -------------------------------------------------------------------------------- /src/WebApp/Middleware/Platform/Events/PlatformSigningOutContext.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Middleware/Platform/Events/PlatformSigningOutContext.cs -------------------------------------------------------------------------------- /src/WebApp/Middleware/Platform/Events/PlatformValidatePrincipalContext.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Middleware/Platform/Events/PlatformValidatePrincipalContext.cs -------------------------------------------------------------------------------- /src/WebApp/Middleware/Platform/IUserSessionStore.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Middleware/Platform/IUserSessionStore.cs -------------------------------------------------------------------------------- /src/WebApp/Middleware/Platform/PlatformAuthenticationDefaults.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Middleware/Platform/PlatformAuthenticationDefaults.cs -------------------------------------------------------------------------------- /src/WebApp/Middleware/Platform/PlatformAuthenticationHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Middleware/Platform/PlatformAuthenticationHandler.cs -------------------------------------------------------------------------------- /src/WebApp/Middleware/Platform/PlatformAuthenticationMiddleware.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Middleware/Platform/PlatformAuthenticationMiddleware.cs -------------------------------------------------------------------------------- /src/WebApp/Middleware/Platform/PlatformAuthenticationOptions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Middleware/Platform/PlatformAuthenticationOptions.cs -------------------------------------------------------------------------------- /src/WebApp/Models/AppUser.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Models/AppUser.cs -------------------------------------------------------------------------------- /src/WebApp/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Program.cs -------------------------------------------------------------------------------- /src/WebApp/Project_Readme.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Project_Readme.html -------------------------------------------------------------------------------- /src/WebApp/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Properties/launchSettings.json -------------------------------------------------------------------------------- /src/WebApp/Services/IPlatformService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Services/IPlatformService.cs -------------------------------------------------------------------------------- /src/WebApp/Services/PlatformService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Services/PlatformService.cs -------------------------------------------------------------------------------- /src/WebApp/Services/UserSessionStore.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Services/UserSessionStore.cs -------------------------------------------------------------------------------- /src/WebApp/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/Startup.cs -------------------------------------------------------------------------------- /src/WebApp/WebApp.xproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/WebApp.xproj -------------------------------------------------------------------------------- /src/WebApp/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/appsettings.json -------------------------------------------------------------------------------- /src/WebApp/project.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/project.json -------------------------------------------------------------------------------- /src/WebApp/web.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yang-xiaodong/PlatformAuthMiddleware/HEAD/src/WebApp/web.config --------------------------------------------------------------------------------