-
Notifications
You must be signed in to change notification settings - Fork 548
Support ASP.NET Core 3.0 #280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ASP.NET Core 3.0 #280
Conversation
Thanks for your PR! It looks good but let's just get rid of the |
Great, that’s much easier. I assumed you’d want to keep both so fixed could be back-ported to 2.0 users, but if that’s not a problem than that makes this much easier 😃 |
This should be mostly functional for ASP.NET Core 3.0 now, based on preview 3. I can't test all the providers, but most are simple migrations based on dotnet/aspnetcore#7105. However, there's four bits that need further review:
|
I've tested the updated Amazon authentication handler with the 3.0 branch of my site (martincostello/alexa-london-travel-site#255), and things are working as expected. |
When it can be updated to nuget? |
/cc @Tratcher @ahsonkhan could you please shed some light on this?
We'll likely make them available via the MyGet.org feed but I wouldn't expect a public release (i.e on NuGet.org) before 3.0 general availability. |
@PinpointTownes FYI I’m working on a separate PR that I’ll submit for separate review at the weekend to add some integration tests for a couple of the providers as a proof-of-concept. If that’s acceptable when I submit it I’ll add it to this PR so we’re confident the changes are all working as I can only easily test the Amazon one myself. |
Draft tests PR for review opened in #282. |
Excluding any code improvements that could be made as referenced by my earlier #280 (comment), I believe this PR is now feature complete. |
src/AspNet.Security.OAuth.Vkontakte/VkontakteAuthenticationHandler.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.Yammer/YammerAuthenticationHandler.cs
Outdated
Show resolved
Hide resolved
Looks cleaner. @BrennanConroy? |
@Tratcher are there plans to eventually add less hackish APIs to support creating JSON constructs without a backing array (a-la I hate to be that guy, but I'm sure that |
Yeah looks good. |
@Tratcher @BrennanConroy Thanks both. |
@PinpointTownes I completely agree and have given the Json folks that feedback. The other possibility here is that this isn't the right datatype to expose in the API, we should have used something more abstract that you could implement using a JsonDocument or your own underlying structure. I hesitate to invent a new abstraction though, and I wouldn't want to use an existing one like nested |
4b16fe5
to
65040ed
Compare
65040ed
to
e85ad2b
Compare
98fc797
to
c10c98b
Compare
Need to fix this either now or when preview 6 arrives: dotnet/aspnetcore#10615 (comment) |
7584900
to
d294679
Compare
@PinpointTownes This PR is getting quite large and unwieldy now, and there's still at least 2 more previews to go until RTM. I was thinking about creating a Then I can do PRs for each preview into that branch until 3.0 ships, and then do a final squash PR back to dev when the time comes. The added benefit of that approach is that 3.0 preview supporting packages get published to MyGet. Thoughts? |
Do you still expect major changes in the 2.x packages? If not, we should probably simply merge this PR into dev and forget about 2.x stuff. If we need to release patches, we can simply use the |
I'm bit wary about making the main dev branch be against a preview version, rather than a stable one. Otherwise it might discourage the community from submitting new providers as they'd have to work against preview API surfaces they might not know as much about (e.g. the new JSON stuff) for the next 4 months until 3.0 RTM lands. |
d294679
to
e122c92
Compare
ffd2a2b
to
771ba60
Compare
Update all providers to ASP.NET Core 3.0, using preview 6.
Remove usage of KoreBuild as it is obsolete and no longer supports .NET Core 3.0 after preview 5. Add code coverage to test project.
49dd868
to
16f2121
Compare
Adds support for ASP.NET Core 3.0 to
various simpleall providers.So far, this PR has only updated providers that had one explicit usage of Newtonsoft.Json. All others have been left targeting .NET Core 2.0 for now.There's lots of#if
and copied code here - I'm sure there's a better way it could be factored.Relates to #275.