Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Douyin provider #1024

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
Open

Add Douyin provider #1024

wants to merge 11 commits into from

Conversation

Loongle
Copy link
Contributor

@Loongle Loongle commented Feb 19, 2025

Add Douyin provider

image

Screenshots translated by Microsoft
image

This is Douyin, not Tiktok.

document

@kevinchalet
Copy link
Member

This is Douyin, not Tiktok.

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.

@Loongle
Copy link
Contributor Author

Loongle commented Feb 19, 2025

What's the difference? Just the name/URL or is the API completely different?

Looking at the documentation so far, it seems that the API URL and the response content are inconsistent.

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.

That's a good quote. But I can't # for TikTok right now. I can't test TikTok.😥
Feishu, Lark, Douyin and TikTok are all ByteDance 😅

Question: If I do compatibility processing in a package, what is the name of the package?☺️

@martincostello
Copy link
Member

You have merge conflicts.

@Loongle
Copy link
Contributor Author

Loongle commented Feb 20, 2025

Sorry, I thought that the resolution of merge conflicts should be handled by the repository maintainer.
😭

@martincostello
Copy link
Member

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 😄

@Loongle
Copy link
Contributor Author

Loongle commented Feb 20, 2025

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!❤️

@martincostello
Copy link
Member

@kevinchalet Are you happy with this PR to be merged?

@kevinchalet
Copy link
Member

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.

@martincostello
Copy link
Member

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.

@egbakou
Copy link

egbakou commented Mar 16, 2025

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.

Hi @kevinchalet,
I’d love to help, but unfortunately, my TikTok app wasn’t approved, so I don’t have access to test it. Sorry :(

@Loongle
Copy link
Contributor Author

Loongle commented Mar 16, 2025

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Development

Successfully merging this pull request may close these issues.

4 participants