概述
Casdoor allows for the use of other OAuth applications as a sign-in method.
Currently, Casdoor supports multiple OAuth application providers. The icons of these providers will be displayed on the login and signup pages once they have been added to Casdoor. The following are the providers that Casdoor supports:
Provider | Logo | Provider | Logo | Provider | Logo | Provider | Logo |
---|---|---|---|---|---|---|---|
ADFS | ![]() | Alipay | ![]() | Amazon | ![]() | Apple | ![]() |
Auth0 | ![]() | AzureAD | ![]() | Baidu | ![]() | Battle.net | ![]() |
Bilibili | ![]() | Bitbucket | ![]() | Box | ![]() | Casdoor | ![]() |
Cloud Foundry | ![]() | Dailymotion | ![]() | Deezer | ![]() | DigitalOcean | ![]() |
DingTalk | ![]() | Discord | ![]() | Tiktok | ![]() | Dropbox | ![]() |
Eve Online | ![]() | ![]() | Fitbit | ![]() | Gitea | ![]() | |
Gitee | ![]() | GitHub | ![]() | GitLab | ![]() | ![]() | |
Heroku | ![]() | InfluxCloud | ![]() | Infoflow | ![]() | ![]() | |
Intercom | ![]() | Kakao | ![]() | Lark | ![]() | Lastfm | ![]() |
Line | ![]() | ![]() | Mailru | ![]() | Meetup | ![]() | |
Microsoft | ![]() | Naver | ![]() | Nextcloud | ![]() | Okta | ![]() |
OneDrive | ![]() | Oura | ![]() | Patreon | ![]() | PayPal | ![]() |
![]() | Salesforce | ![]() | Shopify | ![]() | Slack | ![]() | |
SoundCloud | ![]() | Spotify | ![]() | Steam | ![]() | Strava | ![]() |
Stripe | ![]() | TikTok | ![]() | Tumblr | ![]() | Twitch | ![]() |
![]() | Typetalk | ![]() | Uber | ![]() | VK | ![]() | |
![]() | WeCom | ![]() | ![]() | WePay | ![]() | ||
Xero | ![]() | Yahoo | ![]() | Yammer | ![]() | Yandex | ![]() |
Zoom | ![]() | ![]() | SMS | ![]() |
我们将向您展示如何申请第三方服务并将其添加到Casdoor。
申请成为开发者
在此之前,你需要理解一些概念。
- RedirectUrl, 认证后重定向地址, 填写您的应用程序地址, 例如
https://forum.casbin.com/
- Scope,用户授予您的权限,如基本个人资料,电子邮件地址和帖子及其他。
- ClientId/AppId, ClientKey/AppSecret, 这是最重要的信息 而且这是您在申请开发者帐户后需要得到的信息。 您 无法与任何人共享 的密钥。
添加 OAuth 提供商
- Go to your Casdoor index page.
- Click on
Providers
in the top bar. - Click on
Add
, and you will see a new provider added to the list at the top. - Click on the new provider to make changes to it.
- In the
Category
section, selectOAuth
. - Choose the specific OAuth provider that you require from the
Type
dropdown. - Fill in the necessary information, such as
Client ID
andClient Secret
.
Application Setup
- Click on
Application
in the top bar and select the desired application to edit. - Click on the provider add button and choose the newly added provider.
- Modify the provider's permissions, such as enabling registration, login, and unbinding.
- You're all set!