thedevs-network / kutt

Free Modern URL Shortener.
https://kutt.it
MIT License
8.2k stars 1.05k forks source link

LDAP Auth via Passport #125

Open ndom91 opened 5 years ago

ndom91 commented 5 years ago

Hey Guys,

Has anyone gotten LDAP Auth through Passport.js up and running?

If not I was going to take a crack at it when I get back home (visiting the parents over the holidays).

If anyone has it, can you post a gist or make pull request?

poeti8 commented 5 years ago

No, I haven't done that.

k-apc commented 3 years ago

hi @ndom91 , did you get to do this? I'm interested in ldap too.

Cheers,

ndom91 commented 3 years ago

No, but if you're comfortable with it, you cuold swap Passport out for next-auth which supports LDAP auth with a little modification. Tutorial: https://next-auth.js.org/tutorials/ldap-auth-example

k-apc commented 3 years ago

I think it would need to put time I don't currently have, but out of curiosity... what do you mean with "little modification"?, hehe. I hours/minutes how much would it take to someone with very little npm experience?

ndom91 commented 3 years ago

Haha, so by "little modification" I just mean by following the linked tutorial. It's a bit mroe work than simply installing some packages via npm, but its not that complicated either.

k-apc commented 3 years ago

sounds good. I'll give it a try. have you done it? does it work?

ndom91 commented 3 years ago

Yeah im a core team member of next-auth, it does work :)

The difficult part would be forking kutt and ripping out the passport logic and replacing it with next-auth though. Unfortunatley theres no tutorial for that. Kutt is a next.js app though so it shouldn't be too difficult.

juhannc commented 1 year ago

Are there any updates regarding ldap/ad auth for kutt?