aspnet-contrib - AspNet.Security.OAuth.Salesforce 3.1.5
ASP.NET Core security middleware enabling Salesforce authentication.
PM> Install-Package AspNet.Security.OAuth.Salesforce -Version 3.1.5 -Source https://www.myget.org/F/aspnet-contrib/api/v3/index.json
> nuget.exe install AspNet.Security.OAuth.Salesforce -Version 3.1.5 -Source https://www.myget.org/F/aspnet-contrib/api/v3/index.json
> dotnet add package AspNet.Security.OAuth.Salesforce --version 3.1.5 --source https://www.myget.org/F/aspnet-contrib/api/v3/index.json
source https://www.myget.org/F/aspnet-contrib/api/v3/index.json
nuget AspNet.Security.OAuth.Salesforce ~> 3.1.5
Copy to clipboard
> choco install AspNet.Security.OAuth.Salesforce --version 3.1.5 --source https://www.myget.org/F/aspnet-contrib/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "aspnet-contrib" -SourceLocation "https://www.myget.org/F/aspnet-contrib/api/v2"
Install-Module -Name "AspNet.Security.OAuth.Salesforce" -RequiredVersion "3.1.5" -Repository "aspnet-contrib"
Copy to clipboard
Browse the sources in this package using Visual Studio or WinDbg by configuring the following symbol server URL: https://www.myget.org/F/aspnet-contrib/api/v2/symbolpackage/
AspNet.Security.OAuth.Providers
AspNet.Security.OAuth.Providers is a collection of security middleware that you can use in your ASP.NET Core application to support social authentication providers like GitHub, Twitter/X or Dropbox. It is directly inspired by Jerrie Pelser's initiative, Owin.Security.Providers.
The latest official release can be found on NuGet and the nightly builds on MyGet.
[!TIP] While the aspnet-contrib providers are still fully supported, developers are encouraged to use the OpenIddict client for new applications.
For information, see the Migrating to OpenIddict section.
Getting started
Adding social authentication to your application is a breeze and just requires a few lines in your Startup
class:
public void ConfigureServices(IServiceCollection services)
{
services.AddAuthentication(options => { /* Authentication options */ })
.AddGitHub(options =>
{
options.ClientId = "49e302895d8b09ea5656";
options.ClientSecret = "98f1bf028608901e9df91d64ee61536fe562064b";
});
}
public void Configure(IApplicationBuilder app)
{
app.UseAuthentication();
app.UseAuthorization();
}
See the /samples directory for a complete sample using ASP.NET Core MVC and supporting multiple social providers.
Contributing
AspNet.Security.OAuth.Providers is actively maintained by:
We would love it if you could help contributing to this repository.
Special thanks to our contributors:
- Aaron Sadler
- Abhinav Nigam
- Adam Reisinger
- Albert Zakiev
- Albireo
- Anders Blankholm
- Andrew Lock
- Andrew Mattie
- Andrii Chebukin
- Anthony Yates
- Chino Chang
- Chris Sung
- CoCo Lin
- Dave Timmins
- Dmitry Popov
- Drew Killion
- Elan Hasson
- Eric Green
- Ethan Celletti
- Floris Westerman
- Galo
- Gehongyan
- Igor Simovic
- James Holcomb
- Jason Loeffler
- Jerrie Pelser
- Jesse Mandel
- Jordan Knight
- Kévin Chalet
- Konstantin Mamaev
- LeaFrock
- Levi Muriuki
- Luke Fulliton
- Mariusz Zieliński
- Martin Costello
- Matthew Moore
- Maxime Roussin-Bélanger
- Michael Knowles
- Michael Tanczos
- Patrick Westerhoff
- Robert Shade
- saber-wang
- Sinan
- Stefan
- Steffen Wenz
- Tathagata Chakraborty
- TheUltimateC0der
- Tolbxela
- Tommy Parnell
- twsl
- wplong11
- Yannic Smeets
- zAfLu
- zhengchun
- Vicente Yu
- Volodymyr Baydalka
- Logan Dam
Security policy
Please see SECURITY.md for information about reporting security issues and bugs.
Support
Need help or wanna share your thoughts? Don't hesitate to join us on Gitter or ask your question on StackOverflow:
- Gitter: https://gitter.im/aspnet-contrib/AspNet.Security.OAuth.Providers
- StackOverflow: https://stackoverflow.com/questions/tagged/aspnet-contrib
License
This project is licensed under the Apache License. This means that you can use, modify and distribute it freely. See https://www.apache.org/licenses/LICENSE-2.0.html for more details.
Migrating to OpenIddict
The OpenIddict client and its 75+ web providers have significant advantages over the simpler OAuth 2.0-only authentication handler that is used by the aspnet-contrib providers:
- OpenIddict fully supports OpenID Connect, which allows enforcing additional security checks for providers that implement it.
- The OpenIddict client is stateful and provides built-in countermeasures against nonce/token replay attacks.
- While the aspnet-contrib providers only support the OAuth 2.0 code flow, the OpenIddict providers support additional flows, including the OpenID Connect hybrid flow, the OAuth 2.0 client credentials grant, the resource owner password credentials grant or the refresh token grant.
- The OpenIddict client supports OAuth 2.0 token introspection and OAuth 2.0 token revocation.
- OpenIddict uses OAuth 2.0 and OpenID Connect server configuration discovery to avoid hardcoding the endpoint URIs of a provider when possible, making the OpenIddict web providers more robust and more future-proof.
- While the aspnet-contrib providers require targeting the latest ASP.NET Core version, the OpenIddict web providers can be used in any supported version. They can also be used in ASP.NET 4.6.1+ websites and Windows/Linux desktop applications.
- OpenIddict uses
Microsoft.Extensions.Http.Polly
(orMicrosoft.Extensions.Http.Resilience
on .NET 8+) to make backchannel HTTP communications less prone to transient network errors.
For more information on how to get started with the OpenIddict web providers, you can read:
To contribute a new OpenIddict provider, visit Contributing a new Web provider.
Providers
Links to the latest stable and nightly NuGet packages for each provider, as well as a link to their integration documentation are listed in the table below.
Documentation for the providers' settings can be found here.
If a provider you're looking for does not exist, consider making a PR to add one.
- .NETCoreApp 3.1: 3.1.0.0
OwnersKévin Chalet aspnet-contrib |
AuthorsAndrew Mattie, Chino Chang |
Project URLhttps://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers |
LicenseApache-2.0 |
Tagsaspnetcore authentication oauth salesforce security |
Info0 total downloads |
0 downloads for version 3.1.5 |
Download (13.48 KB) |
Download symbols (13.15 KB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
9.0.0 | 23.17 KB | Tue, 12 Nov 2024 20:26:42 GMT | 0 | ||||
9.0.0-rc.2.24557.45 | 23.23 KB | Thu, 07 Nov 2024 11:04:53 GMT | 0 | ||||
9.0.0-rc.2.24554.41 | 23.14 KB | Mon, 04 Nov 2024 10:15:04 GMT | 0 | ||||
9.0.0-rc.2.24515.38 | 23.15 KB | Tue, 15 Oct 2024 09:21:41 GMT | 0 | ||||
9.0.0-rc.2.24509.43 | 23.14 KB | Wed, 09 Oct 2024 10:42:22 GMT | 0 | ||||
9.0.0-rc.2.24508.67 | 23.14 KB | Tue, 08 Oct 2024 16:46:38 GMT | 0 | ||||
9.0.0-rc.1.24464.64 | 23.14 KB | Sat, 14 Sep 2024 15:52:54 GMT | 0 | ||||
9.0.0-rc.1.24464.61 | 23.15 KB | Sat, 14 Sep 2024 15:14:37 GMT | 0 | ||||
9.0.0-rc.1.24464.60 | 23.14 KB | Sat, 14 Sep 2024 14:50:22 GMT | 0 | ||||
9.0.0-rc.1.24460.76 | 23.11 KB | Tue, 10 Sep 2024 19:04:23 GMT | 0 | ||||
9.0.0-preview.24563.31 | 23.25 KB | Wed, 13 Nov 2024 07:48:01 GMT | 0 | ||||
8.3.0 | 23.22 KB | Thu, 07 Nov 2024 10:32:34 GMT | 0 | ||||
8.2.0 | 23.14 KB | Sat, 14 Sep 2024 15:35:39 GMT | 0 | ||||
8.1.0 | 22.98 KB | Fri, 14 Jun 2024 14:34:06 GMT | 0 | ||||
8.0.0 | 21.88 KB | Tue, 14 Nov 2023 16:02:09 GMT | 0 | ||||
7.0.4 | 14.36 KB | Tue, 15 Aug 2023 14:28:22 GMT | 0 | ||||
7.0.3 | 14.38 KB | Mon, 07 Aug 2023 07:52:38 GMT | 0 | ||||
7.0.2 | 14.35 KB | Sun, 16 Apr 2023 17:07:52 GMT | 0 | ||||
7.0.1 | 14.35 KB | Sun, 16 Apr 2023 09:35:30 GMT | 0 | ||||
7.0.0 | 14.35 KB | Mon, 07 Nov 2022 20:00:03 GMT | 0 | ||||
6.0.15 | 14.29 KB | Sun, 16 Apr 2023 09:34:31 GMT | 0 | ||||
6.0.14 | 14.29 KB | Wed, 02 Nov 2022 15:20:25 GMT | 0 | ||||
6.0.13 | 14.29 KB | Tue, 01 Nov 2022 14:54:22 GMT | 0 | ||||
6.0.12 | 14.3 KB | Mon, 10 Oct 2022 14:39:46 GMT | 0 | ||||
6.0.11 | 14.3 KB | Sun, 04 Sep 2022 17:54:22 GMT | 0 | ||||
6.0.10 | 14.29 KB | Wed, 31 Aug 2022 21:19:44 GMT | 0 | ||||
6.0.9 | 14.29 KB | Wed, 24 Aug 2022 07:43:49 GMT | 0 | ||||
6.0.8 | 14.29 KB | Fri, 19 Aug 2022 15:41:37 GMT | 0 | ||||
6.0.7 | 14.29 KB | Tue, 16 Aug 2022 09:09:47 GMT | 0 | ||||
6.0.6 | 14.28 KB | Wed, 20 Apr 2022 14:29:44 GMT | 0 | ||||
6.0.5 | 14.28 KB | Sun, 27 Mar 2022 09:10:10 GMT | 0 | ||||
6.0.4 | 14.29 KB | Thu, 10 Feb 2022 09:44:47 GMT | 0 | ||||
6.0.3 | 14.3 KB | Sat, 22 Jan 2022 09:44:59 GMT | 0 | ||||
6.0.2 | 14.28 KB | Thu, 06 Jan 2022 17:13:47 GMT | 0 | ||||
6.0.1 | 14.29 KB | Sat, 11 Dec 2021 13:25:01 GMT | 0 | ||||
6.0.0 | 13.49 KB | Mon, 08 Nov 2021 09:21:19 GMT | 0 | ||||
5.0.18 | 13.47 KB | Fri, 29 Oct 2021 11:58:14 GMT | 0 | ||||
5.0.17 | 13.47 KB | Tue, 26 Oct 2021 16:56:41 GMT | 0 | ||||
5.0.16 | 13.47 KB | Sat, 09 Oct 2021 13:58:57 GMT | 0 | ||||
5.0.15 | 13.46 KB | Mon, 04 Oct 2021 07:47:35 GMT | 0 | ||||
5.0.14 | 13.47 KB | Sat, 25 Sep 2021 16:33:16 GMT | 0 | ||||
5.0.13 | 13.47 KB | Fri, 24 Sep 2021 11:09:16 GMT | 0 | ||||
5.0.12 | 13.47 KB | Sat, 11 Sep 2021 10:33:23 GMT | 0 | ||||
5.0.11 | 13.47 KB | Tue, 24 Aug 2021 09:09:49 GMT | 0 | ||||
5.0.10 | 13.47 KB | Fri, 13 Aug 2021 07:59:19 GMT | 0 | ||||
5.0.9 | 13.47 KB | Wed, 28 Jul 2021 15:05:04 GMT | 0 | ||||
5.0.8 | 13.47 KB | Sun, 04 Jul 2021 15:04:44 GMT | 0 | ||||
5.0.7 | 13.48 KB | Sun, 20 Jun 2021 11:32:18 GMT | 0 | ||||
5.0.6 | 13.48 KB | Fri, 04 Jun 2021 18:33:19 GMT | 0 | ||||
5.0.5 | 13.47 KB | Thu, 03 Jun 2021 08:31:51 GMT | 0 | ||||
5.0.4 | 13.48 KB | Wed, 07 Apr 2021 14:03:36 GMT | 0 | ||||
5.0.3 | 13.47 KB | Fri, 26 Mar 2021 09:00:09 GMT | 0 | ||||
5.0.2 | 13.48 KB | Sat, 13 Mar 2021 16:11:18 GMT | 0 | ||||
5.0.1 | 13.47 KB | Mon, 01 Feb 2021 19:08:12 GMT | 0 | ||||
5.0.0 | 13.47 KB | Tue, 10 Nov 2020 16:26:18 GMT | 0 | ||||
3.1.8 | 13.56 KB | Wed, 31 Aug 2022 21:09:16 GMT | 0 | ||||
3.1.7 | 13.56 KB | Mon, 01 Feb 2021 19:00:16 GMT | 0 | ||||
3.1.6 | 13.49 KB | Mon, 26 Oct 2020 08:55:32 GMT | 0 | ||||
3.1.5 | 13.48 KB | Tue, 20 Oct 2020 12:45:21 GMT | 0 | ||||
3.1.4 | 13.5 KB | Tue, 06 Oct 2020 17:37:04 GMT | 0 | ||||
3.1.3 | 21.77 KB | Thu, 16 Jul 2020 07:29:21 GMT | 0 | ||||
3.1.2 | 21.77 KB | Wed, 08 Jul 2020 13:15:30 GMT | 0 | ||||
3.1.1 | 21.74 KB | Fri, 08 May 2020 13:20:52 GMT | 0 | ||||
3.1.0 | 21.72 KB | Mon, 20 Apr 2020 17:55:42 GMT | 0 | ||||
3.0.0 | 20.35 KB | Mon, 14 Oct 2019 12:53:40 GMT | 0 | ||||
2.2.2 | 12.08 KB | Fri, 08 May 2020 13:07:10 GMT | 0 | ||||
2.2.1 | 12.08 KB | Mon, 20 Apr 2020 17:38:14 GMT | 0 | ||||
2.2.0 | 12.08 KB | Mon, 14 Oct 2019 12:48:52 GMT | 0 | ||||
2.1.0 | 12.09 KB | Thu, 06 Jun 2019 17:47:29 GMT | 0 | ||||
2.0.1 | 10.31 KB | Mon, 21 Jan 2019 16:01:24 GMT | 0 | ||||
2.0.0 | 10.31 KB | Mon, 18 Jun 2018 20:59:59 GMT | 0 | ||||
1.0.1 | 19.5 KB | Mon, 21 Jan 2019 15:57:13 GMT | 0 | ||||
1.0.0 | 19.49 KB | Mon, 18 Jun 2018 20:55:34 GMT | 0 |