using e_suite.API.Common.models.@base;
using e_suite.Database.Core.Models;
using e_suite.Database.Core.Tables.UserManager;

namespace e_suite.API.Common.models;

public class ReadSsoProvider : SsoProviderBase, IGeneralId
{
    public ReadSsoProvider()
    {

    }

    public ReadSsoProvider(SsoProvider ssoProvider)
    {
        Id = ssoProvider.Id;
        AuthorizationEndpoint = ssoProvider.AuthorizationEndpoint;
        ClientId = ssoProvider.ClientId;
        ClientSecret = ssoProvider.ClientSecret;
        IsPublic = ssoProvider.IsPublic;
        Name = ssoProvider.Name;
        TokenEndpoint = ssoProvider.TokenEndpoint;
        ValidIssuer = ssoProvider.ValidIssuer;
        Guid = ssoProvider.Guid;
    }

    public long Id { get; set; }
    public Guid Guid { get; set; }
}