mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-07-16 05:54:01 +03:00
[PR #1185] [MERGED] feat: process nonce within device authorization flow #1083
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/1185
Author: @justincmoy
Created: 1/2/2026
Status: ✅ Merged
Merged: 1/4/2026
Merged by: @stonith404
Base:
main← Head:device-nonce📝 Commits (4)
4daba49Add nonce to device authorizationcbdea2dAdd field to modelecccc17Merge branch 'main' into device-nonce43ae31erename migrations📊 Changes
7 files changed (+16 additions, -1 deletions)
View changed files
📝
backend/internal/dto/oidc_dto.go(+1 -0)📝
backend/internal/model/oidc.go(+1 -0)📝
backend/internal/service/oidc_service.go(+2 -1)➕
backend/resources/migrations/postgres/20260104190900_add_nonce_to_device_codes.down.sql(+1 -0)➕
backend/resources/migrations/postgres/20260104190900_add_nonce_to_device_codes.up.sql(+1 -0)➕
backend/resources/migrations/sqlite/20260104190900_add_nonce_to_device_codes.down.sql(+5 -0)➕
backend/resources/migrations/sqlite/20260104190900_add_nonce_to_device_codes.up.sql(+5 -0)📄 Description
This commit:
A nonce is useful in this flow to prevent token replay attacks.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.