mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
[PR #550] [MERGED] refactor: some clean-up in OIDC service and controller (1.0) #736
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/550
Author: @ItalyPaleAle
Created: 5/19/2025
Status: ✅ Merged
Merged: 5/19/2025
Merged by: @stonith404
Base:
v1.0.0← Head:refactor-1📝 Commits (5)
7cad759Code clean-up46e125fUse some constants00a6144Some more refactorf80b57aLast changesfdf9fecMerge branch 'v1.0.0' of https://github.com/pocket-id/pocket-id into refactor-1📊 Changes
3 files changed (+127 additions, -96 deletions)
View changed files
📝
backend/internal/controller/oidc_controller.go(+10 -21)📝
backend/internal/controller/well_known_controller.go(+1 -1)📝
backend/internal/service/oidc_service.go(+116 -74)📄 Description
As I started working on #361, I wanted to split out a small initial refactor/code cleanup, so the upcoming main PR wouldn't contain irrelevant refactorings.
OidcService,CreateTokenand all the functions it calls now accept a struct and return a struct. This avoids passing up to 5 arguments and having up to 5 return values (some functions did not use all input args and did not return all 5 outputs).urn:ietf:params:oauth:grant-type:device_code🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.