27 references to TwitterOptions
Microsoft.AspNetCore.Authentication.Test (5)
TwitterTests.cs (5)
21
public class TwitterTests : RemoteAuthenticationTests<
TwitterOptions
>
28
protected override void RegisterAuth(AuthenticationBuilder services, Action<
TwitterOptions
> configure)
37
protected override void ConfigureDefaults(
TwitterOptions
o)
535
private static async Task<IHost> CreateHost(Action<
TwitterOptions
> options, Func<HttpContext, Task<bool>> handler = null)
577
Action<
TwitterOptions
> wrapOptions = o =>
Microsoft.AspNetCore.Authentication.Twitter (22)
TwitterCreatingTicketContext.cs (2)
13
public class TwitterCreatingTicketContext : ResultContext<
TwitterOptions
>
31
TwitterOptions
options,
TwitterEvents.cs (2)
19
public Func<RedirectContext<
TwitterOptions
>, Task> OnRedirectToAuthorizationEndpoint { get; set; } = context =>
36
public virtual Task RedirectToAuthorizationEndpoint(RedirectContext<
TwitterOptions
> context) => OnRedirectToAuthorizationEndpoint(context);
TwitterExtensions.cs (8)
36
/// <param name="configureOptions">A delegate to configure <see cref="
TwitterOptions
"/>.</param>
38
public static AuthenticationBuilder AddTwitter(this AuthenticationBuilder builder, Action<
TwitterOptions
> configureOptions)
50
/// <param name="configureOptions">A delegate to configure <see cref="
TwitterOptions
"/>.</param>
52
public static AuthenticationBuilder AddTwitter(this AuthenticationBuilder builder, string authenticationScheme, Action<
TwitterOptions
> configureOptions)
65
/// <param name="configureOptions">A delegate to configure <see cref="
TwitterOptions
"/>.</param>
67
public static AuthenticationBuilder AddTwitter(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<
TwitterOptions
> configureOptions)
69
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<
TwitterOptions
>, TwitterPostConfigureOptions>());
70
return builder.AddRemoteScheme<
TwitterOptions
, TwitterHandler>(authenticationScheme, displayName, configureOptions);
TwitterHandler.cs (4)
23
public partial class TwitterHandler : RemoteAuthenticationHandler<
TwitterOptions
>
42
public TwitterHandler(IOptionsMonitor<
TwitterOptions
> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock)
50
public TwitterHandler(IOptionsMonitor<
TwitterOptions
> options, ILoggerFactory logger, UrlEncoder encoder)
179
var redirectContext = new RedirectContext<
TwitterOptions
>(Context, Scheme, Options, properties, twitterAuthenticationEndpoint);
TwitterOptions.cs (3)
20
/// Initializes a new instance of the <see cref="
TwitterOptions
"/> class.
113
private readonly
TwitterOptions
_twitterOptions;
115
public TwitterCookieBuilder(
TwitterOptions
twitterOptions)
TwitterPostConfigureOptions.cs (3)
11
/// Used to setup defaults for all <see cref="
TwitterOptions
"/>.
13
public class TwitterPostConfigureOptions : IPostConfigureOptions<
TwitterOptions
>
31
public void PostConfigure(string? name,
TwitterOptions
options)