These instructions assume "https://example.com/" is the base URL for your NextCloud. Adjust according to your setup.
- Install the Social login app in your NextCloud (see README.md)
- Apply for becoming a Twitter App Developer
- Go to https://developer.twitter.com/
- Click "Apply" for a developer account
- Fill out relevant information
- You'll need to provide a valid phone number and confirm it
- Under "The specifics" when it asks you what your intent is, explain it is for NextCloud and then uncheck each box appropriately. If you're just using this for NextCloud you can uncheck all boxes since this will just be for SSO, it won't be analyzing Twitter data or generating content.
- Submit your application.
- Confirm your email.
- Wait for your application to be approved
- Create an application
- Go to https://developer.twitter.com/
- Click "Create an app"
- Fill out relevant information:
- Website URL: https://example.com/
- Enable Sign In with Twitter: Check this box
- Callback URLs: https://example.com/apps/sociallogin/oauth/twitter
- Organization website URL: https://example.com/
- Click "Save"
- Go to the "Keys and tokens tab"; here you should see a section "Consumer API keys", store these somewhere safe
- Configure "Social Login" in NextCloud
- Click "Settings" in the menu
- Under Administration click "Social login"
- In the bottom section under "Twitter" enter:
- App id: the "API key" provided earlier
- Secret: the "API secret key" provided earlier
- Default group: Select the group you want users to be assigned
- Click "Save" at the very bottom
- Now, open up a new browser to test the login. On the login screen you should now see "Twitter" underneath the typical NextCloud login prompt.