Basic Authentication
Password authentication
Section titled “Password authentication”This is the standard way of logging in, where users use a combination of email and password to authenticate. This authentication method is enabled by default but can also be turned off.
# Enable/disable password authenticationscoold.password_auth_enabled = trueCheck the “SMTP” section on how to configure transactional emails in Scoold.
Authetication with a social account
Section titled “Authetication with a social account”For all social identity providers, you need to obtain both the OAuth2 client ID (app id) and secret key.
Configuration properties
Section titled “Configuration properties”# Facebookscoold.fb_app_id = ""scoold.fb_secret = ""# Googlescoold.gp_app_id = ""scoold.gp_secret = ""# GitHubscoold.gh_app_id = ""scoold.gh_secret = ""# LinkedInscoold.in_app_id = ""scoold.in_secret = ""# Twitterscoold.tw_app_id = ""scoold.tw_secret = ""# Microsoftscoold.ms_app_id = ""scoold.ms_secret = ""scoold.ms_tenant_id = ""# Slackscoold.sl_app_id = ""scoold.sl_secret = ""# Amazonscoold.az_app_id = ""scoold.az_secret = ""You also need to set your host URL when running Scoold in production:
scoold.host_url = "https://your.scoold.url"This is required for authentication requests to be redirected back to the origin.
Authentication endpoints
Section titled “Authentication endpoints”For example, for GitHub you need to whitelist https://parahost.com/github_auth as a
callback URL (redirect URL). The same thing applies for the other providers. For these two providers you need to whitelist
these two URLs, containing the public address of Scoold:
https://myscoold.comhttps://myscoold.com/signinOther endpoints include:
- Google:
https://paraio.com/google_auth - Facebook:
https://paraio.com/facebook_auth - Twitter:
https://paraio.com/facebook_auth - Amazon:
https://paraio.com/amazon_auth - Microsoft:
https://paraio.com/microsoft_auth - LinkedIn:
https://paraio.com/linkedin_auth - Slack
https://paraio.com/slack_auth - OAuth 2:
https://paraio.com/oauth2_auth
For locally hosted authentication providers (SAML, LDAP, Mattermost, etc.) the authentication endpoints will also be pointing to the URL of your Scoold server.
If you skip this step, authentication will most likely not work.
In some cases (see related issue) you want to have Scoold connect to Para which is hosted somewhere on your local network and logging in with some authentication providers, like Microsoft, doesn’t work. In such cases, you would see an error “redirect_uri mismatch” or “invalid redirect_uri - must start with https:// or http://localhost”. To make it work you can set this Scoold configuration:
# public Para hostnamescoold.security.redirect_uri = "https://public-para.host"# keep this pointing to the local Para IPscoold.para_endpoint = "http://local-ip:8080"