Native support for JWT

Abierto
#817 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
postgresql, rust, sql

Línea de trabajo

The issue proposes built-in JWT signing and verification functions but does not identify implementation files or tests. Start by reading the project’s documentation and code for built-in SQL functions, then look for relevant tests. Done means both requested functions are available and signing, verification, and returned header/payload/validity are tested.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

What are you building with SQLPage ?

A proof of concept for use as a general purpose engine for declarative apps

What is your problem ? A description of the problem, not the solution you are proposing.

I would like to manage sessions for users with a stateless solution

What are you currently doing ? Since your solution is not implemented in SQLPage currently, what are you doing instead ?

JWT or PHP sessions

Describe the solution you'd like

Provide two built-in functions (like in this project https://github.com/michelp/pgjwt):

  • sqlpage_jwt_sign(payload: json_str, secret: str) -> str provides a JWT signed using the provided secret
  • sqlpage_jwt_verify(jwt_token: str, secret: str) -> |header: json_str|payload: json_str|valid: bool| verifies that the provided JWT and gives the payload and the header

Describe alternatives you've considered

Using https://github.com/michelp/pgjwt

Additional context

Lenguaje dominante
Rust
Estrellas
2.6k
Forks
175
Merge medio
14 h 16 min
PR fusionados (30 d)
43

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sqlpage/SQLPage

Todos los issues de sqlpage/SQLPage

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.