Skip to content
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

Do you know an example of Grant setup in SvelteKit project? #274

Open
stephane-klein opened this issue Jun 11, 2022 · 3 comments
Open

Do you know an example of Grant setup in SvelteKit project? #274

stephane-klein opened this issue Jun 11, 2022 · 3 comments

Comments

@stephane-klein
Copy link

Hi,

I want to configure an OAuth 2 authentication connected to self-hosted GitLab instance for a SvelteKit SSR project.

Here is my personnel exploration issue.

I try to use Grant library instead node-oauth or passport-oauth2

Question: do you know an example of Grant setup in SvelteKit project?

I intend to try to setup Grand in a SvelteKit hooks, based on https://github.com/simov/grant/blob/master/lib/handler/vercel.js source code 🤔

Best regards,
Stéphane

@simov
Copy link
Owner

simov commented Jun 11, 2022

Is the SvelteKit supposed to have a server running? Last time I checked it was a purely browser framework. If it have it's own server then you basically need a Grant handler for it so that you can leverage everything already available in Grant.

@stephane-klein
Copy link
Author

Is the SvelteKit supposed to have a server running?

@simov yes: SvelteKit

@simov
Copy link
Owner

simov commented Jun 12, 2022

Yes, I glanced at your commits and it seems like it is going to work. Generally speaking though, the design goal in Grant has always been to provide a minimal interface that works out of the box for all of the supported HTTP frameworks and Cloud providers. I do see how creating the handler for Grant might be an extra effort in your case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants