https://github.com/stephane-klein/sveltekit-gitlab-oauth2-poc
Svelte passport OAuth GitLab POC
https://github.com/stephane-klein/sveltekit-gitlab-oauth2-poc
gitlab learn-in-public oauth2 proof-of-concept svelte sveltekit
Last synced: 5 months ago
JSON representation
Svelte passport OAuth GitLab POC
- Host: GitHub
- URL: https://github.com/stephane-klein/sveltekit-gitlab-oauth2-poc
- Owner: stephane-klein
- Created: 2022-05-31T05:52:59.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-11T21:43:38.000Z (about 4 years ago)
- Last Synced: 2025-08-14T19:13:44.944Z (11 months ago)
- Topics: gitlab, learn-in-public, oauth2, proof-of-concept, svelte, sveltekit
- Language: JavaScript
- Homepage:
- Size: 309 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SvelteKit GitLab Oauth2 POC
See [this issue](https://github.com/stephane-klein/poc-svelte-oauth-passport-gitlab/issues/1) to discover the journey of
this Proof Of Concept.
* Based on [SvelteKit](https://kit.svelte.dev/)
* Based on [Authorization code flow](https://docs.gitlab.com/ee/api/oauth2.html#authorization-code-flow)
* Cookie stored with [HttpOnly method](https://en.wikipedia.org/wiki/HTTP_cookie#Secure_and_HttpOnly)
* **Didn't use** this library:
* https://github.com/Dan6erbond/sk-auth
* https://github.com/fabiohvp/sveltekit-passport-oauth2
* https://github.com/fh1ch/passport-gitlab2
* https://github.com/jaredhanson/passport-oauth2
* https://github.com/ciaranj/node-oauth
* https://github.com/simov/grant
## Getting started
```
$ cp .envrc.example .envrc
```
Fill `.envrc` file with your GitLab application parameters
Install packages:
```
$ pnpm install
```
Launch application:
```
$ pnpm run dev
```
Open your browser on http://127.0.0.1:3000