-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customizable auth providers, + some improvements #98
Customizable auth providers, + some improvements #98
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but this will break existing self-hosters so need to give an heads-up before releasing this version.
BTW, are you self-hosting it?
Yes, my goal is to self-host the project, with minio for files and only the EmailProvider for authentication. |
… options based on enabled auth providers
07f3df1
to
f14a57a
Compare
b85e57d
to
83ccedd
Compare
Okay, so I've added a lot of fixes and changes related to my update of auth providers. I can get it working locally without any issues. However, when I try to run the web app with Docker, I get this error: ❌ Invalid environment variables:
{
"NEXT_PUBLIC_AUTH_PROVIDERS": [
"Required"
]
} This is related to this : t3-oss/t3-env#244 (comment)
So, we have two choices:
I think it’s better for everyone to be able to set their own values, so I went with the second option. You can find the associated code here : https://github.com/Striffly/split-pro/tree/features/customizable-providers-2 (check the last commit especially)
@KMKoushik let me know what you think about this, and if you have time to take a look at my code 🙏 [EDIT] Related links :
|
…r use with Docker See oss-apps#98 (comment)
Thanks for your feedback @KMKoushik, thanks to you I solved in 30 minutes this problem I had spent 5 hours on the day before 😅 |
The last thing I'd like to add to my PR is a change in the Docker Compose to allow using Minio instead of an AWS bucket.
This could be part of a new PR once this one is accepted, but if you have a bit of time, could you take a look at it? 🙏 |
@Striffly I'll verify and merge this over the weekend. it's quite a big PR and need to be tested properly. Amazing work BTW |
@Striffly This PR is ready to be reviewed and merged right? |
@KMKoushik yes ! I would have just liked your feedback on my last message regarding the docker-compose, but as I mentioned, it can easily be the subject of another PR, this one is already quite packed 🙂 |
@Striffly sure thing, i'll test this today and let you know, i used minio before, will check. |
Can't wait to see this merged. It finally lays the ground to custom OAuth providers. See my previous request. |
Waiting for this PR to finally start self host it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TYSM great work, this PR looks good with some minor changes. lemme know if you can work on this or i can do this myself.
And for minio question, you need user name and password https://github.com/unsend-dev/unsend/blob/main/docker/dev/compose.yml#L27 Can take from env for production. |
I've provided feedback on your comments, I'll leave it to you to decide which changes need to be made or not. I won’t be able to revisit this PR for the next two weeks, so if you have some time before then to do these changes that would be great!
In the config I mentioned earlier, they are indeed present no ? |
i never faced the bucket issue, not 100% sure. your docker example looks good. i would re verify the ports and stuff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modifications made following the code reviews, let me know if everything looks good!
b9cca62
to
5572a16
Compare
5572a16
to
580b801
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this is awesome thank you so much.
Thank you so much again. this is great |
Several changes about auth providers:
EmailProvider
.EmailProvider
.AUTH_PROVIDERS
, which allows makingGoogleProvider
optional.And some improvements :
FEEDBACK_EMAIL
is used instead ofhello@ossapps.dev
ENABLE_SENDING_INVITES
env variablePlease test and validate!
I’ve been quite proactive with some of the changes, so if any adjustments are needed, don’t hesitate to let me know!