Alternate login method with SSO

Hi All,

I know that when SSO is enabled, it will be the only sign in method. But I don’t want that…

  1. I’d like users from my university to have an option to login with SSO.

  2. I’d like all users to have an option to login by creating a local account.

My University doesn’t provide an Oauth2 ID, so I can’t simply use OAuth2 instead of SSO. Any ideas? Or is this frowned upon for some reason?

Thanks,

GI

1 Like

If you want multiple methods of login you shouldn’t use SSO.

You can write a plugin that implements your university login protocol as an omniauth strategy, following examples like https://github.com/discourse/discourse-plugin-linkedin-auth, https://github.com/discourse/discourse-steam-login and https://github.com/discourse/discourse-plugin-discord-auth.

That way you can have the plugin and local logins enabled at the same time.

4 Likes