Beispiel #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;
        }
Beispiel #2
0
		private void detach_SiteProviders(SiteProvider entity)
		{
			this.SendPropertyChanging();
			entity.Provider = null;
		}
Beispiel #3
0
		private void attach_SiteProviders(SiteProvider entity)
		{
			this.SendPropertyChanging();
			entity.Provider = this;
		}
Beispiel #4
0
 partial void DeleteSiteProvider(SiteProvider instance);
Beispiel #5
0
 partial void UpdateSiteProvider(SiteProvider instance);
Beispiel #6
0
 partial void InsertSiteProvider(SiteProvider instance);