jargonsdev / jargonsdev/jargons.dev

Auth Feature - Fourth Iteration

Aperta
#30 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
:arrow_upper_right: medium priority :sparkles: enhancement hacktoberfest
Lingua principale
MDX
Stelle
56
Fork
45
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The third iteration of the auth feature should focus on enhancing the OAuth flow and adding a signout/disconnect feature.

This is a follow up to the initial iterations...

- First Iteration - https://github.com/babblebey/jargons.dev/pull/8
- Second Iteration - https://github.com/babblebey/jargons.dev/pull/28
- OAuth App type refactoring - https://github.com/babblebey/jargons.dev/pull/33

#### Tasks
1. **Store OAuth Flow State Object in Cookies:** Implement the todo that suggests storing the OAuth flow state object to cookies. This stored state should be compared with the `state` param returned from the GitHub OAuth flow in the `github/oauth/callback` handler to prevent CSRF attacks.

#### Related Files
- `github/oauth/callback.js`
- `lib/actions/do-auth.js`

#### Acceptance Criteria
- OAuth flow state object is stored in cookies and compared with the `state` param.
- Signout/disconnect feature is implemented and accessible through the `doAuth` action

#### Additional Notes
- Nothing much... just ask a question or share ideas, if you've got any 😉

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia leggendo github/oauth/callback.js e lib/actions/do-auth.js, quindi esamina il flusso OAuth esistente e il relativo TODO per l'archiviazione dei cookie. Il lavoro è completato quando lo stato OAuth viene memorizzato e confrontato con il parametro state restituito, e signout/disconnect è disponibile tramite doAuth; l'issue non indica alcun test da eseguire.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
github, javascript, nodejs
Ambito
authentication, backend
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.