Repository navigation
feat(auth): add TikTok and Kakao OAuth2 providers - #13526
Merged
Merged
Conversation
TikTok Login Kit names the client identifier client_key, separates scopes with commas, and answers a rejected token request with an error body rather than only an HTTP error status. It exposes no email, so identity comes from the app-scoped open_id. Kakao drives consent from the items configured on the app and rejects the authorization (KOE205) as soon as a scope is not activated there, so none is requested by default; extra consent items can still be passed per request. It reports both whether the address is verified and whether it is still valid, and neither is present until the email consent item is granted. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Contributor
Greptile SummaryAdds TikTok and Kakao as first-class OAuth2 providers.
Confidence Score: 5/5The PR appears safe to merge, with no actionable new issue identified in the changes since the previous review. The only post-review change updates Important Files Changed
Reviews (4): Last reviewed commit: "chore(deps): pick up the migration OAuth..." | Re-trigger Greptile |
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
TikTok calls them a client key and a client secret; Kakao issues a REST API key. Examples follow the real credential formats. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This was referenced Sep 8, 2026
utopia-php/migration 2.0.7 adds the tiktok and kakao entries. Without them a migration of every OAuth2 provider errors instead of skipping, reddening MigrationsConsoleClientTest. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2 of 4 tasks
This was referenced Sep 23, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds two new OAuth2 sign-in providers: TikTok (Login Kit) and Kakao (Kakao Login).
Both follow the existing provider shape: an adapter under
src/Appwrite/Auth/OAuth2/, anUpdateaction underProject/Http/Project/OAuth2/, a response model, and registration inoAuthProviders.php,models.php,Response.php,OAuth2ProviderList,Base::getProviderActions(),GetandProject\Services\Http.TikTok
https://www.tiktok.com/v2/auth/authorize/, tokenhttps://open.tiktokapis.com/v2/oauth/token/, user infohttps://open.tiktokapis.com/v2/user/info/.client_key, so the console field is labelled "Client Key" while the API field staysclientId.user.info.basicis the narrowest scope that returns an identity, so it is the only default.open_id,union_id,display_name,avatar_urlare always requested.open_id. Login Kit exposes no email, sogetUserEmail()returns''andisEmailVerified()isfalse(same as Resend).errorbody rather than only an HTTP error status, so the response is checked explicitly instead of relying onrequest()alone.verifyCredentials()is not implemented — TikTok does not document an error code for bad client credentials, so there is nothing reliable to assert against.Kakao
https://kauth.kakao.com/oauth/authorize, tokenhttps://kauth.kakao.com/oauth/token, user infohttps://kapi.kakao.com/v2/user/me.client_secret. Both are called out in the field labels/hints.scopesquery param, comma-separated.is_email_verifiedandis_email_valid; an address is only treated as verified when both hold and the email consent item was granted.verifyCredentials()probes the token endpoint and rejects oninvalid_client(KOE010), matching Hugging Face / Resend / Cloudflare.Test Plan
tests/unit/Auth/OAuth2/{TikTokTest,KakaoTest}.phpcover the login URL shape (includingclient_keyvsclient_idand comma-separated scopes), the token and refresh request shapes, refresh-token retention, provider errors, and claim mapping.docker compose exec appwrite test tests/unit/Auth/OAuth2/→ 71 tests, 441 assertions, green.tests/e2e/Services/Project/OAuth2ConsoleClientTest.phpandOAuth2CustomServerTest.phpgreen (26 tests each).PATCH /v1/project/oauth2/{tiktok,kakao}are routed, and both providers appear onGET /v1/console/oauth2-providerswith the expected field names and examples.composer lint,phpstan --level 4on the new files, andcomposer refactor:checkall pass. Spec generation producesprojectUpdateOAuth2TikTok/projectUpdateOAuth2Kakaoand theoAuth2TikTok/oAuth2Kakaomodels.Related PRs and Issues
Follows the same shape as the Cloudflare (#13391) and Resend (#13366) provider additions.
Have you read the Contributing Guidelines on issues?
Yes.
Note for the console
Both providers use
icon-tiktok/icon-kakao; the console needs matching icons before they render.🤖 Generated with Claude Code