-
Notifications
You must be signed in to change notification settings - Fork 1
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
Implement the first version of SvelteKit project + GitLab OAuth2 connection #1
Comments
I use https://github.com/fh1ch/passport-gitlab2 Passport strategy package. |
In Here where |
I am studying https://github.com/fabiohvp/sveltekit-passport-oauth2/blob/master/src/index.ts source code. |
I read https://kit.svelte.dev/docs/hooks#handle and I don't understand how |
I see |
I read |
Next, I have this error:
|
I checked, here |
In https://kit.svelte.dev/docs/hooks#handle I see that now |
Fixed by this commit e78c045 |
After this commit 8af28ea when I go to http://127.0.0.1:3000/auth/gitlab.json I have this error:
|
I will fork https://github.com/fabiohvp/sveltekit-passport-oauth2 to fix:
|
After reading sveltejs/kit#1610, sveltejs/kit#334 and sveltejs/kit#2051 I understand How do I use middleware? better:
Next todo:
|
This
Now I'm looking for a way to get an access token to the GitLab api 🤔 |
It's ok, this |
I see that I wonder if it would not be better to use directly Moreover, |
Done in this commit: 243b3fe
Yes, I confirm that it works 🙂 |
Next task:
|
In future iteration:
|
I checked if there is a GitHub repository with https://github.com/ciaranj/node-oauth + SvelteKit but I found nothing. |
In next iteration:
|
It works in this commit: 21082b6 |
I try to understand how to setup a middleware to Vite by using a Vite plugin. |
It is easy, this is the commit: 7e74df0 |
Next iteration:
|
The http://127.0.0.1:3000/ page does not respond, infinite load. |
I don't know how to debug that 🤔 |
I'm studying this list https://github.com/sindresorhus/awesome-nodejs#debugging--profiling |
I will create a branch with only |
Question posted here: |
While waiting for a
|
I will do that in |
I use this source code to configure |
I just read node-oauth - Project is active?. On https://github.com/sindresorhus/awesome-nodejs#authentication, I found this |
Todo:
|
I think the SvelteKit + Grant implementation will be too difficult for me. I will try to implement vanilla Authorization code flow, without library 🤷 |
First iteration done with success in Here I get:
Todo:
I will read Sveltekit Authentication post. |
Issue goal achieved in |
Hello,
This is Learn In Public issue.
Following this question on Reddit, I created this GitHub repository and this issue, whose goal is to set up a SvelteKit project with a OAuth 2 authentication connected to a self-hosted GitLab instance.
For the moment, I refer to the following resources:
The text was updated successfully, but these errors were encountered: