Add Weibo as an OAuth provider
This guide explains how to let users sign in to Casdoor with their Weibo account.
Learning outcomes
- Get a client ID and client secret from the Weibo Open Platform.
- Add Weibo as an OAuth provider in Casdoor.
What you need
- A developer account on the Weibo Open Platform
- Administrator access to the Casdoor admin console
Register on the Weibo Open Platform
- On the Weibo Open Platform, complete the basic information and submit it for review. The review often takes two to three days.
- After approval, create an application and set its authorization callback URL to the callback URL of Casdoor,
https://<your-casdoor-host>/callback. See Redirect URL and callback URL. - Copy the client ID and the client secret.
Add the provider in Casdoor
- In the Casdoor admin console, go to Identity > Providers and add a provider.
- Set Category to
OAuthand Type toWeibo. - Enter the Client ID and the Client secret.
- Save the provider.
Next steps
Add the provider to an application. See Add providers to an application.