示例#1
0
        public OAuth(string providerSlug)
        {
            Data.Site site = new Site();
            Data.SiteProvider siteProvider = new SiteProvider();
            Data.Provider provider = new Data.Provider();

            var oAuthProvider = null; // Data.Repositories.Current.Repository.GetOAuth(providerSlug);
            this.ProviderId = oAuthProvider.ProviderId;
            this.CodeEndpoint = oAuthProvider.CodeEndpoint;
            this.TokenEndpoint = oAuthProvider.TokenEndpoint;
            this.UserEndPoint = oAuthProvider.UserEndpoint;
            this.CodeLinkFormat = oAuthProvider.CodeLinkFormat;
            this.TokenLinkFormat = oAuthProvider.TokenLinkFormat;
            this.RedirectUri = oAuthProvider.RedirectUri.Trim();
            this.ClientId = oAuthProvider.ClientId;
            this.ClientSecret = oAuthProvider.ClientSecret;
            this.Scope = oAuthProvider.Scope;
            this.ReturnUrl = null;
            this.Code = null;
            this.Token = null;
        }
示例#2
0
 partial void UpdateSite(Site instance);
示例#3
0
 partial void DeleteSite(Site instance);
示例#4
0
 partial void InsertSite(Site instance);