AspNet.Security.OAuth.Providers Versions Save

OAuth 2.0 social authentication providers for ASP.NET Core

6.0.2

2 years ago

Changes

  • Support custom Okta authorization servers (#638) Thanks @martincostello!
  • Add missing/incomplete PKCE support to providers which override BuildChallengeUrl() and/or ExchangeCodeAsync() (#635) Thanks @martincostello!
  • Add missing FormatScope(IEnumerable<string>) overrides (#635) Thanks @martincostello!

Contributors

  • @kevinchalet
  • @martincostello

Full Changelog: https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/compare/6.0.1...6.0.2

6.0.1

2 years ago

Changes

  • Use v2 API for EVEOnline provider (#497) Thanks @Dusty-Meg!
  • Use [LoggerMessage] for logging (#624, #628) Thanks @martincostello!
  • Use NuGet.exe instead of dotnet nuget to publish packages (#630) Thanks @kevinchalet!

Contributors

  • @Dusty-Meg
  • @kevinchalet
  • @martincostello

Full Changelog: https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/compare/6.0.0...6.0.1

6.0.0

2 years ago

Added

  • Support ASP.NET Core 6 (#552) Thanks @martincostello !

Changes

  • Use ConfigurationManager in Apple provider (#421, #561) Thanks @martincostello !
  • Remove Claims.AvatarUrl from Discord provider (#584, #585) Thanks @martincostello !
  • Simplify PEM loading in Apple provider (#563) Thanks @martincostello !
  • Various public const string members changed to public static readonly string.

Breaking Changes

Version 6.0.0 includes breaking changes from version 5.0.x for some of the providers. See below for the specific changes and how to migrate.

Apple

The PrivateKeyBytes property was updated to accept a CancellationToken and return a ReadOnlyMemory<char>.

- public Func<string, Task<byte[]>>? PrivateKeyBytes { get; set; }
+ public Func<string, CancellationToken, Task<ReadOnlyMemory<char>>>? PrivateKey { get; set; }

Use the AsMemory() extension method to change a string to a ReadOnlyMemory<char>.

Discord

Versions of the Discord provider before version 6.0.0 would automatically map the user's avatar URL as the urn:discord:avatar:url claim.

This functionality is no longer built-in (see #584 and #585), but can be added to your application with some extra code similar to that shown in the sample below.

services.AddAuthentication(options => /* Auth configuration */)
        .AddDiscord(options =>
        {
            options.ClientId = "my-client-id";
            options.ClientSecret = "my-client-secret";

            options.ClaimActions.MapCustomJson("urn:discord:avatar:url", user =>
                string.Format(
                    CultureInfo.InvariantCulture,
                    "https://cdn.discordapp.com/avatars/{0}/{1}.{2}",
                    user.GetString("id"),
                    user.GetString("avatar"),
                    user.GetString("avatar").StartsWith("a_") ? "gif" : "png"));
        });

Contributors

  • @kevinchalet
  • @martincostello
  • @ndelta0

5.0.18

2 years ago

Added

  • Support PKCE authentication in LiChess provider (#619) Thanks @tanczosm!

Fixed

  • Pass through CancellationToken in more places in the Keycloak and Notion providers (#620) Thanks @martincostello!

Contributors

  • @kevinchalet
  • @martincostello
  • @tanczosm

5.0.17

2 years ago

Added

  • Add ServiceChannel provider (#616, #617) Thanks @dev-hyang!

Fixed

  • Update default Vkontakte API version in documentation (#615) Thanks @alexbagirov!

Contributors

  • @alexbagirov
  • @dev-hyang
  • @martincostello

5.0.16

2 years ago

Fixed

  • Fix incorrect endpoint paths in the Keycloak provider (#609, #612) Thanks @martincostello!
  • Fix Keycloak provider not supporting the public access type (#610, #611, #613) Thanks @FaridAhamat!

Contributors

  • @FaridAhamat
  • @martincostello

5.0.15

2 years ago

Fixed

  • Fix scopes concatenation in Odnoklassniki provider (#606, #607) Thanks @IvanTsel96!

Contributors

  • @IvanTsel96
  • @martincostello

5.0.14

2 years ago

Added

  • Add eBay provider (#603) Thanks @binick!

Contributors

  • @binick
  • @martincostello

5.0.13

2 years ago

Fixed

  • Fix CreatingTicket event not being raised when using the EventsType property (#600) Thanks @TehGM!
  • Fix ValidateIdToken event not being raised by the Apple provider when using the EventsType property (#601) Thanks @martincostello!

Contributors

  • @martincostello
  • @TehGM

5.0.12

2 years ago

Added

  • Add QuickBooks provider (#593) Thanks @yongshui!

Contributors

  • @martincostello
  • @yongshui