-
Notifications
You must be signed in to change notification settings - Fork 545
Add Douyin provider #1024
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
base: dev
Are you sure you want to change the base?
Add Douyin provider #1024
Conversation
src/AspNet.Security.OAuth.Douyin/AspNet.Security.OAuth.Douyin.csproj
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.Douyin/DouyinAuthenticationHandler.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.Douyin/DouyinAuthenticationHandler.cs
Outdated
Show resolved
Hide resolved
src/AspNet.Security.OAuth.Douyin/DouyinAuthenticationHandler.cs
Outdated
Show resolved
Hide resolved
What's the difference? Just the name/URL or is the API completely different? FWIW, we had a similar case with Feishu/Lark in the OpenIddict repo and decided a region option was a better approach (see openiddict/openiddict-core#2097). Since the aspnet-contrib providers developed here are a lot more expensive/time-consuming to maintain, we shouldn't duplicate the Tiktok provider if it's really the same service with just a different name and URL. |
Looking at the documentation so far, it seems that the API URL and the response content are inconsistent.
That's a good quote. But I can't sign up for TikTok right now. I can't test TikTok.😥 Question: If I do compatibility processing in a package, what is the name of the package? |
test/AspNet.Security.OAuth.Providers.Tests/Douyin/DouyinTests.cs
Outdated
Show resolved
Hide resolved
You have merge conflicts. |
Sorry, I thought that the resolution of merge conflicts should be handled by the repository maintainer. |
I avoid doing it as if the author wants to add extra changes and don't notice the upstream has changed sometimes they get annoyed 😄 |
This taught me some important details about open source practices. Thank you!❤️ |
@kevinchalet Are you happy with this PR to be merged? |
After re-reading #1024, I just realized that we don’t actually have a TikTok provider… it’s only been suggested that we add one: #664 😄 Anyway, my concern remains: it would be better if we had one provider - assuming the APIs are (almost) identical - that allows selecting either the China-specific service (Douyin) or the global one (TikTok). Sadly, I don’t have a TikTok test account and last time I tried, they made creating them quite painful… @Alex-Dobrynin @egbakou any chance you guys could help test this provider and see if it works with the global TikTok service? Note: if we agree on having a single provider, we should probably name it TikTok so it’s easier to find. |
Thanks, in that case I'll release 9.1.0 to ship the other new providers we have queued up, then this can go out in a future version. |
Hi @kevinchalet, |
Hi @kevinchalet under normal circumstances, currently TikTok cannot be accessed by China users like Lark does, as this involves geopolitical influences and data security legal issues. I suggest separating TikTok and Douyin, which can enable China companies to deal with legal reviews. |
Add Douyin provider
Screenshots translated by Microsoft

This is Douyin, not Tiktok.
document