Skip to content

Releases: aspnet-contrib/AspNet.Security.OAuth.Providers

6.0.0

08 Nov 09:17
Compare
Choose a tag to compare

Added

Changes

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

5.0.18

29 Oct 11:55
Compare
Choose a tag to compare

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

5.0.17

26 Oct 16:53
Compare
Choose a tag to compare

Added

Fixed

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

Contributors

5.0.16

09 Oct 13:55
Compare
Choose a tag to compare

Fixed

Contributors

5.0.15

04 Oct 07:44
Compare
Choose a tag to compare

Fixed

Contributors

5.0.14

25 Sep 16:29
Compare
Choose a tag to compare

Added

Contributors

5.0.13

24 Sep 11:04
Compare
Choose a tag to compare

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

5.0.12

11 Sep 10:28
Compare
Choose a tag to compare

Added

Contributors

5.0.11

24 Aug 09:05
Compare
Choose a tag to compare

Fixed

Contributors

5.0.10

13 Aug 07:55
Compare
Choose a tag to compare

Added

Contributors