Add authentication endpoint

Aperta
#599 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

@Tanu1201 ci sta già lavorando.

Dal 14/5/2024.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
next.js, typescript, wordpress

Direzione di ricerca

Inizia individuando la classe esistente che genera token JWT nel plugin Headstart WP e la registrazione dell’endpoint REST. Definisci la configurazione richiesta per la scadenza del token e i dati della risposta filtrabili, quindi determina quale documentazione per l’integrazione con Next.js è necessaria e come dovrebbe essere testato l’endpoint.

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

Descrizione

Is your enhancement related to a problem? Please describe.

A HeadstartWP-based project I'm working on requires a way to authenticate WordPress users within the Next.js app. While an additional third-party plugin such as JWT Authentication for WP REST API can be added for this purpose, the Headstart WP plugin already has a class for generating JWT tokens, so I propose adding an authentication REST endpoint within the plugin.

The endpoint would need to support different expiration times for the token (configurable perhaps via a filter), and the data returned from the REST endpoint should be filterable to provide any other user-specific data needed in the Next.js application such as roles, etc.

For the Next.js side of things, it may be sufficient for this repo to provide documentation for the integration.

Designs

No response

Describe alternatives you've considered

It's also an option to use a third-party plugin to provide an authentication endpoint.

Code of Conduct
  • I agree to follow this project's Code of Conduct
Lingua principale
TypeScript
Stelle
204
Fork
26
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di 10up/headstartwp

Tutte le issue di 10up/headstartwp

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.