Oauth2 providers
Last updated
Last updated
ShipClojure provides for any login providers. By default, the Google provider is already setup.
Follow the steps to create a google application and get your client-id
& client-secret
.
Important: Make sure the redirect URI set-up in your application matches the format
/oauth2/:provider/callback
which is the default for shipclojure
Add these properties to ~/.saas-secrets.edn
under [:oauth2-providers :google]
{:client-id "123" :client-secret" "123"}
That's it! Your google login should be ready
Add the new entry in under :oauth2/providers
Add the client secrets (:client-id
& :client-secret
) in your resources/.{prod|dev}-secrets.edn
file
Test your connection by visiting /oauth2/:provider
and if everything was setup correctly, your new provider should work