[GH-ISSUE #92] [Feature request] NextAuth Providers for OAuth/SSO #78

Closed
opened 2026-03-02 11:46:20 +03:00 by kerem · 12 comments
Owner

Originally created by @schmoaaaaah on GitHub (Apr 9, 2024).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/92

The ability to use the NextAuth Providers for OAuth Authentication would be nice.

Originally created by @schmoaaaaah on GitHub (Apr 9, 2024). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/92 The ability to use the [NextAuth Providers](https://next-auth.js.org/providers/) for OAuth Authentication would be nice.
kerem 2026-03-02 11:46:20 +03:00
Author
Owner

@linedpaper commented on GitHub (Jun 4, 2024):

Agreed, any sort of external would be great!

<!-- gh-comment-id:2148497084 --> @linedpaper commented on GitHub (Jun 4, 2024): Agreed, any sort of external would be great!
Author
Owner

@kamtschatka commented on GitHub (Jun 5, 2024):

which providers would be most interesting? there are 60+ proviers, that is a bit much ;-)

<!-- gh-comment-id:2149070376 --> @kamtschatka commented on GitHub (Jun 5, 2024): which providers would be most interesting? there are 60+ proviers, that is a bit much ;-)
Author
Owner

@MohamedBassem commented on GitHub (Jun 5, 2024):

@kamtschatka I'd add only the generic oauth one

<!-- gh-comment-id:2149072791 --> @MohamedBassem commented on GitHub (Jun 5, 2024): @kamtschatka I'd add only the generic oauth one
Author
Owner

@schmoaaaaah commented on GitHub (Jun 5, 2024):

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.

<!-- gh-comment-id:2149242150 --> @schmoaaaaah commented on GitHub (Jun 5, 2024): You could also do it with big ENV vars: ```yaml 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.
Author
Owner

@SeeJayEmm commented on GitHub (Jun 5, 2024):

I don't know anything about Nextauth but any generic OAuth or SAML implementation would be good. Whichever you find easiest to implement.

<!-- gh-comment-id:2149579288 --> @SeeJayEmm commented on GitHub (Jun 5, 2024): I don't know anything about Nextauth but any generic OAuth or SAML implementation would be good. Whichever you find easiest to implement.
Author
Owner

@gtzapper commented on GitHub (Jul 10, 2024):

+1 , any generic oauth will be good.

<!-- gh-comment-id:2220844930 --> @gtzapper commented on GitHub (Jul 10, 2024): +1 , any generic oauth will be good.
Author
Owner

@MohamedBassem commented on GitHub (Sep 22, 2024):

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!

<!-- gh-comment-id:2366862951 --> @MohamedBassem commented on GitHub (Sep 22, 2024): 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!
Author
Owner

@MohamedBassem commented on GitHub (Sep 22, 2024):

@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!

<!-- gh-comment-id:2366866348 --> @MohamedBassem commented on GitHub (Sep 22, 2024): @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!
Author
Owner

@MFYDev commented on GitHub (Sep 22, 2024):

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?

<!-- gh-comment-id:2366868137 --> @MFYDev commented on GitHub (Sep 22, 2024): 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?
Author
Owner

@MohamedBassem commented on GitHub (Sep 22, 2024):

@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 :)

<!-- gh-comment-id:2366868746 --> @MohamedBassem commented on GitHub (Sep 22, 2024): @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 :)
Author
Owner

@MFYDev commented on GitHub (Sep 22, 2024):

Sure, thank you, on it!

<!-- gh-comment-id:2366869145 --> @MFYDev commented on GitHub (Sep 22, 2024): Sure, thank you, on it!
Author
Owner

@MFYDev commented on GitHub (Sep 22, 2024):

@MohamedBassem Done, just created the FR

<!-- gh-comment-id:2366870675 --> @MFYDev commented on GitHub (Sep 22, 2024): @MohamedBassem Done, just created the FR
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#78
No description provided.