Reddit 提供商的用户和权限设置
¥Reddit provider setup for Users & Permissions
本页面说明如何为 用户和权限功能 设置 Reddit 提供商。
¥The present page explains how to setup the Reddit provider for the Users & Permissions feature.
红迪网配置
¥Reddit configuration
Reddit 接受 localhost
网址。
不需要使用 ngrok
。
¥Reddit accepts the localhost
urls.
The use of ngrok
is not needed.
-
访问 Reddit 授权应用首选项页面 [https://www.reddit.com/prefs/apps](https://www.reddit.com/prefs/apps)
¥Visit the Reddit authorized applications preferences page at https://www.reddit.com/prefs/apps
-
单击创建另一个应用...靠近底部的按钮
¥Click on the create another app... button near the bottom
-
选择网络应用类型
¥Select web app for the type
-
填写名称并重定向 uri 输入
¥Fill the name and redirect uri input in
-
单击创建应用按钮
¥Click the create app button
-
请注意,客户端 ID 位于应用类型(Web 应用)下
¥Note that the Client ID is located under the app type (web app)
表带配置
¥Strapi configuration
-
访问用户和权限提供商设置页面位于 [http://localhost:1337/admin/settings/users-permissions/providers](http://localhost:1337/admin/settings/users-permissions/providers)
¥Visit the User & Permissions provider settings page at http://localhost:1337/admin/settings/users-permissions/providers
-
单击 Reddit 提供商
¥Click on the Reddit provider
-
填写信息(替换为你自己的客户端 ID 和密码):
¥Fill the information (replace with your own client ID and secret):
-
使能够:
ON
¥Enable:
ON
-
客户编号:hmxSBOit0SCjSQ
¥Client ID: hmxSBOit0SCjSQ
-
客户秘密:gwR9hCjK_PMYVYNGeDLS4WLB8g7xqg
¥Client Secret: gwR9hCjK_PMYVYNGeDLS4WLB8g7xqg
-
前端应用的重定向 URL:
http://localhost:3000/connect/reddit/redirect
¥The redirect URL to your front-end app:
http://localhost:3000/connect/reddit/redirect
-
你的配置已完成。启动后端和 react login 示例应用 ,转到 http://localhost:3000
并尝试连接到你配置的提供商。
¥Your configuration is done.
Launch the backend and the react login example application , go to http://localhost:3000
and try to connect to the provider you configured.