FormidableLabs / FormidableLabs/react-native-app-auth
Tiktok support
- 主要言語
- Java
- スター
- 2.3k
- フォーク
- 473
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Some OAuth2 providers have a slightly different implementation than the official specification.
If we take the case of TikTok's implementation, here are the differences in the URL parameters during the authorization procedure:
* The `client_id` parameter is named `client_key`.
* The `scope` parameter value is comma separated and **not URL encoded**.
It should be possible to specify how to change the parameters when generating the authorization URL, for example, by initializing it with new parameters:
```js
const result = await authorize({
customParameterNames: {
clientId: 'client_key'
...
},
encodeParameterValues: {
scope: false
},
staticAuthorizeUrl: 'https://example.com/authorize',
});
```
| Parameter | Type | Description |
| - | - | - |
| customParameterNames | **Object** | Specifies all parameters that should be renamed when generating the authorization URL. |
| encodeParameterValues | **Object** | Specifies all parameters that should be encoded or not when generating the authorization URL. |
| staticAuthorizeUrl | **String** | Specify to skip authorization URL generation and get this one |
Tiktok documentation :
https://developers.tiktok.com/doc/login-kit-web?enter_method=left_navigation
Any ideas?
コントリビューションガイド
調査の方向性
authorize API と認可 URL の生成パスから始め、そのパラメーター処理を TikTok Login Kit のドキュメントと比較します。customParameterNames、encodeParameterValues、staticAuthorizeUrl が生成される URL にどのような影響を与えるべきかを定義し、TikTok の client_key およびカンマ区切りの scope 要件に照らして、結果として得られる動作を検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react-native
- 領域
- authentication, mobile
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100