Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save james-dibble/2a29db54337a96f8ff1c to your computer and use it in GitHub Desktop.
Save james-dibble/2a29db54337a96f8ff1c to your computer and use it in GitHub Desktop.
External Authentication Providers View
@foreach (var provider in OAuthWebSecurity.RegisteredClientData)
{
<a href="@this.Url.Action("loginexternal", "account", new { provider = provider.AuthenticationClient.ProviderName, returnUrl = this.Model.RedirectUrl })">
<@provider.DisplayName
</a>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment