FormidableLabs / FormidableLabs/react-native-app-auth

Tiktok support

Đang mở
#1,102 2 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
2.3k
Fork
473
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với authorize API và đường dẫn tạo URL ủy quyền, sau đó so sánh cách xử lý tham số của nó với tài liệu Login Kit của TikTok. Xác định customParameterNames, encodeParameterValues và staticAuthorizeUrl sẽ ảnh hưởng như thế nào đến các URL được tạo, đồng thời xác minh hành vi kết quả dựa trên các yêu cầu của TikTok đối với client_key và scope được phân tách bằng dấu phẩy.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, react-native
Lĩnh vực
authentication, mobile
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.