diff options
Diffstat (limited to 'libs/VNLib.Plugins.Sessions.OAuth')
4 files changed, 18 insertions, 19 deletions
diff --git a/libs/VNLib.Plugins.Sessions.OAuth/LICENSE.txt b/libs/VNLib.Plugins.Sessions.OAuth/LICENSE.txt index 147bcd6..a169586 100644 --- a/libs/VNLib.Plugins.Sessions.OAuth/LICENSE.txt +++ b/libs/VNLib.Plugins.Sessions.OAuth/LICENSE.txt @@ -1,8 +1,8 @@ -Copyright (c) 2022 Vaughn Nugent +Copyright (c) 2023 Vaughn Nugent Contact information Name: Vaughn Nugent - Email: public[at]vaughnnugent[dot]com + Email: vnpublic@proton.me Website: https://www.vaughnnugent.com The software in this repository is licensed under the GNU Affero GPL version 3.0 (or any later version). diff --git a/libs/VNLib.Plugins.Sessions.OAuth/README.md b/libs/VNLib.Plugins.Sessions.OAuth/README.md index 03d27d9..310225f 100644 --- a/libs/VNLib.Plugins.Sessions.OAuth/README.md +++ b/libs/VNLib.Plugins.Sessions.OAuth/README.md @@ -1,13 +1,19 @@ # VNLib.Plugins.Sessions.OAuth *Provides OAuth2 sessions and required endpoints for authentication via user applications from the VNLib.Plugins.Essentials.Oauth library* -#### Builds -Debug build w/ symbols & xml docs, release builds, NuGet packages, and individually packaged source code are available on my [website](https://www.vaughnnugent.com/resources/software). All tar-gzip (.tgz) files will have an associated .sha384 appended checksum of the desired download file. +This library may be loaded as a standard VNLib.Plugins.Essentials framework plugin (standalone mode) or loaded by the SessionProvider plugin (integrated mode) for multiple runtime session support. -## Notes -When dynamically loading this session provider as an asset in the SessionProvider plugin, make sure to order this assembly ahead of other web-based providers if loading multiple providers. OAuth2 sessions are only valid if the connection contains a Bearer token (valid or not it "pre-accepted""), otherwise no session will be attached. +**This library requires 3rd-party dependencies** -This plugin may be loaded as a standalone authentication server, by loading it directly as an IPlugin. Sessions are created in the backing stores when a token is generated, and therefore accessable via shared backing stores. +## Builds +Debug build w/ symbols & xml docs, release builds, NuGet packages, and individually packaged source code are available on my website (link below). + +## Docs and Guides +Documentation, specifications, and setup guides are available on my website. + +[Docs and Articles](https://www.vaughnnugent.com/resources/software/articles?tags=docs,_vnlib.plugins.sessions.oauth) +[Builds and Source](https://www.vaughnnugent.com/resources/software/modules/VNLib.Plugins.Sessions) +[Nuget Feeds](https://www.vaughnnugent.com/resources/software/modules) ## License -Source files in for this project are licensed to you under the GNU Affero General Public License (or any later version). See the LICENSE files for more information.
\ No newline at end of file +Source files in for this project are licensed to you under the GNU Affero General Public License (or any later version). See the LICENSE file for more information. diff --git a/libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2Session.cs b/libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2Session.cs index 605ccbd..e7dc09d 100644 --- a/libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2Session.cs +++ b/libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2Session.cs @@ -45,7 +45,7 @@ namespace VNLib.Plugins.Sessions.OAuth public void InitNewSession(IHttpEvent entity) { - SessionType = SessionType.Web; + SessionType = SessionType.OAuth2; Created = DateTimeOffset.UtcNow; //Set user-ip address UserIP = entity.Server.GetTrustedIp(); diff --git a/libs/VNLib.Plugins.Sessions.OAuth/src/VNLib.Plugins.Sessions.OAuth.csproj b/libs/VNLib.Plugins.Sessions.OAuth/src/VNLib.Plugins.Sessions.OAuth.csproj index d57bb0b..9fcfb3b 100644 --- a/libs/VNLib.Plugins.Sessions.OAuth/src/VNLib.Plugins.Sessions.OAuth.csproj +++ b/libs/VNLib.Plugins.Sessions.OAuth/src/VNLib.Plugins.Sessions.OAuth.csproj @@ -19,20 +19,12 @@ <Company>Vaughn Nugent</Company> <Product>Essentials framework OAuth2 session provider</Product> <Description> - Provides OAuth2 sessions and required endpoints for authentication via user applications from the VNLib.Plugins.Essentials.Oauth library + Provides OAuth2 sessions and required endpoints for authentication via user applications from the VNLib.Plugins.Essentials.Oauth library. This library is designed to be loaded dynamically at runtime by the SessionProvider plugin. </Description> <Copyright>Copyright © 2023 Vaughn Nugent</Copyright> - <PackageProjectUrl>https://www.vaughnnugent.com/resources/software/modules/VNLib.Core</PackageProjectUrl> + <PackageProjectUrl>https://www.vaughnnugent.com/resources/software/modules/VNLib.Plugins.Sessions</PackageProjectUrl> <RepositoryUrl>https://github.com/VnUgE/VNLib.Plugins.Sessions/tree/master/libs/VNLib.Plugins.Sessions.OAuth</RepositoryUrl> </PropertyGroup> - - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> - <Deterministic>False</Deterministic> - </PropertyGroup> - - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> - <Deterministic>False</Deterministic> - </PropertyGroup> <ItemGroup> <ProjectReference Include="..\..\..\..\DataCaching\lib\VNLib.Plugins.Extensions.VNCache\src\VNLib.Plugins.Extensions.VNCache.csproj" /> @@ -46,4 +38,5 @@ <Target Condition="'$(BuildingInsideVisualStudio)' == true" Name="PostBuild" AfterTargets="PostBuildEvent"> <Exec Command="start xcopy "$(TargetDir)" "..\..\..\..\..\devplugins\RuntimeAssets\$(TargetName)" /E /Y /R" /> </Target> + </Project> |