Skip to content

Melethainiel/Auth.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Auth.NET

How to use

Add the package

PM> Install-Package Auth.NET

In AppSettings.json

Add the following configuration :

{
  "Authentication": {
    "Google": {
      "ClientId": "{...}",
      "ClientSecret": "{...}"
    },
    "Microsoft": {
      "ClientId": "{...}",
      "ClientSecret": "{...}"
    }
  }
}

In Startup.cs

Add the following lines :

public void ConfigureServices(IServiceCollection services)
{
    services.AddGoogleAuth(Configuration);
    services.AddMicrosoftAuth(Configuration);
}

In the page/component

@inject MicrosoftAuth MicrosoftAuth

private async Task OnMicrosoftClick()
{
    await MicrosoftAuth.Connect("openid");
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published