using System; using VNLib.Net.Http; using VNLib.Plugins.Essentials.Oauth; using VNLib.Plugins.Sessions.Cache.Client; namespace VNLib.Plugins.Essentials.Sessions.OAuth { public interface IOauthSessionIdFactory : ISessionIdFactory { /// /// The maxium number of tokens allowed to be created per OAuth application /// int MaxTokensPerApp { get; } /// /// Allows for custom configuration of the newly created session and /// the its attached to /// /// The newly created session /// The application associated with the session /// The http event that generated the new session void InitNewSession(RemoteSession session, UserApplication app, IHttpEvent entity); /// /// The time a session is valid for /// TimeSpan SessionValidFor { get; } /// /// Called when the session provider wishes to generate a new session /// and required credential information to generate the new session /// /// The information genreated for the news ession TokenAndSessionIdResult GenerateTokensAndId(); /// /// The type of token this session provider generates /// string TokenType { get; } } }