diff options
author | vman <public@vaughnnugent.com> | 2022-11-20 16:42:01 -0500 |
---|---|---|
committer | vman <public@vaughnnugent.com> | 2022-11-20 16:42:01 -0500 |
commit | 71ad09dda9ac67ef481d115fb9544dcd56834f22 (patch) | |
tree | 2341c80e519e6eac5ade89b4e36f9c7df967b5d1 /Libs/VNLib.Plugins.Essentials.Sessions.OAuth/OAuth2SessionProvider.cs | |
parent | 47f23c50713fa4fa99a793cdc6a0a9474382b5b6 (diff) |
License + readme update
Diffstat (limited to 'Libs/VNLib.Plugins.Essentials.Sessions.OAuth/OAuth2SessionProvider.cs')
-rw-r--r-- | Libs/VNLib.Plugins.Essentials.Sessions.OAuth/OAuth2SessionProvider.cs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Libs/VNLib.Plugins.Essentials.Sessions.OAuth/OAuth2SessionProvider.cs b/Libs/VNLib.Plugins.Essentials.Sessions.OAuth/OAuth2SessionProvider.cs index af68a45..5f9fc7e 100644 --- a/Libs/VNLib.Plugins.Essentials.Sessions.OAuth/OAuth2SessionProvider.cs +++ b/Libs/VNLib.Plugins.Essentials.Sessions.OAuth/OAuth2SessionProvider.cs @@ -9,17 +9,17 @@ * VNLib collection of libraries and utilities. * * VNLib.Plugins.Essentials.Sessions.OAuth is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published -* by the Free Software Foundation, either version 2 of the License, -* or (at your option) any later version. +* it under the terms of the GNU Affero General Public License as +* published by the Free Software Foundation, either version 3 of the +* License, or (at your option) any later version. * * VNLib.Plugins.Essentials.Sessions.OAuth is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Affero General Public License for more details. * -* You should have received a copy of the GNU General Public License -* along with VNLib.Plugins.Essentials.Sessions.OAuth. If not, see http://www.gnu.org/licenses/. +* You should have received a copy of the GNU Affero General Public License +* along with this program. If not, see https://www.gnu.org/licenses/. */ using System; @@ -131,7 +131,7 @@ namespace VNLib.Plugins.Essentials.Sessions.OAuth } } ///<inheritdoc/> - public async Task<IOAuth2TokenResult?> CreateAccessTokenAsync(HttpEntity ev, UserApplication app, CancellationToken cancellation) + public async Task<IOAuth2TokenResult?> CreateAccessTokenAsync(IHttpEvent ev, UserApplication app, CancellationToken cancellation) { //Get a new session for the current connection TokenAndSessionIdResult ids = factory.GenerateTokensAndId(); @@ -142,15 +142,15 @@ namespace VNLib.Plugins.Essentials.Sessions.OAuth } //Create new session from the session id RemoteSession session = SessionCtor(ids.SessionId); - await session.WaitAndLoadAsync(ev.Entity, cancellation); + await session.WaitAndLoadAsync(ev, cancellation); try { //Init new session - factory.InitNewSession(session, app, ev.Entity); + factory.InitNewSession(session, app, ev); } finally { - await session.UpdateAndRelease(false, ev.Entity); + await session.UpdateAndRelease(false, ev); } //Init new token result to pass to client return new OAuth2TokenResult() |