[Feature request] NextAuth Providers for OAuth/SSO
Agreed, any sort of external would be great!
which providers would be most interesting? there are 60+ proviers, that is a bit much ;-)
@kamtschatka I'd add only the generic oauth one
You could also do it with big ENV vars:
providers: |
AuthentikProvider({
clientId: process.env.AUTHENTIK_ID,
clientSecret: process.env.AUTHENTIK_SECRET,
issuer: process.env.AUTHENTIK_ISSUER,
})
and add them to the provideres array in Nextauth, but I agree the Generic Oauth would be easier to implement.
I don't know anything about Nextauth but any generic OAuth or SAML implementation would be good. Whichever you find easiest to implement.
+1 , any generic oauth will be good.
For all the people waiting for SSO, it's now released in version 0.17 and you have @kamtschatka to thank for that! I know that this was a popular request and it took us some time to get to it, but it's finally here!
Note, if the account is created for the first time using SSO (no password configured), you'll have to use the new "login by API keys" in the extension and the mobile apps. The new mobile app versions that introduce this feature are currently under review by google/apple.
If you already have an account, and you want to link it with the SSO account after configuring it, you'll want to set OAUTH_ALLOW_DANGEROUS_EMAIL_ACCOUNT_LINKING=true.
Give it a try and let us know if you have any questions!
@MFYDev I've just pushed the new documentation version, you can find it here: https://docs.hoarder.app/configuration#authentication--signup :)
Sorry I should have linked that earlier!
Thank you, just tested and it is working well with Authentik, however can we get an option to disable the default password log in form?
@MFYDev Glad that it's working well! I think this is a reasonable feature request. Can you file a separate issue for it? Shouldn't be too hard to implement :)
Sure, thank you, on it!
@MohamedBassem Done, just created the FR