/// <summary> /// Creates a new OpenIDConnectLoginControllerBase. /// </summary> /// <param name="tokenHandler">The Azure Mobile Services security token handler.</param> /// <param name="masterKey">The master key for your Azure Mobile Service.</param> /// <param name="openIdConnectBaseUrl">The base URL of your OpenIDConnect provider.</param> public OpenIDConnectLoginControllerBase(IServiceTokenHandler tokenHandler, string masterKey, string openIdConnectBaseUrl) { _tokenHandler = tokenHandler; _azureMasterKey = masterKey; _tokenValidationEndpointFormat = openIdConnectBaseUrl + "/connect/accesstokenvalidation?token={0}"; _userInfoEndpoint = openIdConnectBaseUrl + "/connect/userinfo"; }
public CustomLoginProvider(IServiceTokenHandler tokenHandler) : base(tokenHandler) { this.TokenLifetime = new TimeSpan(30, 0, 0, 0); }
public LinkedInLoginProvider(IServiceTokenHandler tokenHandler) : base(tokenHandler) { }
/// <summary> /// </summary> /// <param name="tokenHandler"></param> public FBLoginProvider(IServiceTokenHandler tokenHandler) : base(tokenHandler) { }
public CustomLoginProvider(IServiceTokenHandler tokenHandler) : base(tokenHandler) { this.TokenLifetime = TimeSpan.FromHours(15); }
public RoadZenLoginProvider(IServiceTokenHandler tokenHandler) : base(tokenHandler) { this.TokenLifetime = new TimeSpan(30, 0, 0, 0); }
public CustomLoginProvider(IServiceTokenHandler tokenHandler) : base(tokenHandler) { TokenLifetime = TimeSpan.FromDays(365); }
public CustomLoginProvider(IServiceTokenHandler tokenHandler) : base(tokenHandler) { this.TokenLifetime = TimeSpan.FromHours(15); }
/// <summary> /// Creates a new OpenIDConnectLoginProvider. /// </summary> /// <param name="tokenHandler">The token handler to pass to the base class.</param> /// <param name="tokenLifetime">The lifetime the token is valid for.</param> public OpenIDConnectLoginProvider(IServiceTokenHandler tokenHandler, TimeSpan tokenLifetime) : base(tokenHandler) { this.TokenLifetime = tokenLifetime; }
/// <summary> /// Creates a new OpenIDConnectLoginProvider. Defaults token lifetime to 30 days. /// </summary> /// <param name="tokenHandler">The token handler to pass to the base class.</param> public OpenIDConnectLoginProvider(IServiceTokenHandler tokenHandler) : this(tokenHandler, new TimeSpan(30, 0, 0, 0)) { }
public SinaWeiboLoginProvider(IServiceTokenHandler tokenHandler) : base(tokenHandler) { }
public LinkedInLoginProvider(IServiceTokenHandler tokenHandler) : base(tokenHandler) { }
public CustomGoogleLoginProvider(HttpConfiguration config, IServiceTokenHandler tokenHandler) : base(config, tokenHandler) { }
/// <summary> /// Creates a new login provider. Override this to provide a custom LoginProvider implementation. /// </summary> /// <param name="tokenHandler">The Azure Mobile Services security token handler.</param> /// <returns>Returns a new LoginProvider instance.</returns> protected virtual LoginProvider CreateLoginProvider(IServiceTokenHandler tokenHandler) { return(new OpenIDConnectLoginProvider <OpenIDConnectProviderCredentials>(tokenHandler)); }
public CustomLoginProvider(IServiceTokenHandler tokenHandler) : base(tokenHandler) { // Setup tokens to have a 30 day lifetime this.TokenLifetime = new TimeSpan(30, 0, 0, 0); }
public StandartLoginProvider(IServiceTokenHandler tokenHandler) : base(tokenHandler) { TokenLifetime = new TimeSpan(30, 0, 0, 0); }