[PR #2329] [MERGED] feat(web,server): manage authorized devices #9494

Closed
opened 2026-02-05 14:05:47 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/immich-app/immich/pull/2329
Author: @jrasm91
Created: 4/25/2023
Status: Merged
Merged: 4/26/2023
Merged by: @alextran1502

Base: mainHead: feature/user-devices


📝 Commits (10+)

  • eef36c9 feat: manage authorized devices
  • b756856 chore: open api
  • f311c10 get header from mobile app
  • 7b84bb9 write header from mobile app
  • 074ea92 styling
  • c930029 Merge branch 'feature/user-devices' of github.com:immich-app/immich into feature/user-devices
  • 24afb92 fix unit test
  • fadd60e feat: use relative time
  • 79c17fc feat: update access time
  • 4308f5d fix: tests

📊 Changes

41 files changed (+1208 additions, -92 deletions)

View changed files

📝 mobile/lib/modules/login/providers/authentication.provider.dart (+17 -0)
📝 mobile/openapi/.openapi-generator/FILES (+3 -0)
📝 mobile/openapi/README.md (+3 -0)
mobile/openapi/doc/AuthDeviceResponseDto.md (+20 -0)
📝 mobile/openapi/doc/AuthenticationApi.md (+99 -0)
📝 mobile/openapi/doc/LogoutResponseDto.md (+2 -2)
📝 mobile/openapi/lib/api.dart (+1 -0)
📝 mobile/openapi/lib/api/authentication_api.dart (+84 -0)
📝 mobile/openapi/lib/api_client.dart (+2 -0)
mobile/openapi/lib/model/auth_device_response_dto.dart (+151 -0)
mobile/openapi/test/auth_device_response_dto_test.dart (+52 -0)
📝 mobile/openapi/test/authentication_api_test.dart (+10 -0)
📝 server/apps/immich/src/controllers/auth.controller.ts (+19 -5)
📝 server/apps/immich/src/controllers/oauth.controller.ts (+4 -3)
📝 server/apps/immich/src/decorators/auth-user.decorator.ts (+14 -1)
📝 server/apps/immich/src/utils/patch-open-api.util.ts (+4 -0)
📝 server/immich-openapi-specs.json (+97 -4)
📝 server/libs/domain/src/auth/auth.core.ts (+13 -6)
📝 server/libs/domain/src/auth/auth.service.spec.ts (+72 -11)
📝 server/libs/domain/src/auth/auth.service.ts (+17 -6)

...and 21 more files

📄 Description

View and logout Authorized Devices. Add device type/name to user token table for display purposes.

TODO:

  • Unit tests
  • Device image (chrome, android, iOS, etc.)
  • Update updatedAt to be last access time

image
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/immich-app/immich/pull/2329 **Author:** [@jrasm91](https://github.com/jrasm91) **Created:** 4/25/2023 **Status:** ✅ Merged **Merged:** 4/26/2023 **Merged by:** [@alextran1502](https://github.com/alextran1502) **Base:** `main` ← **Head:** `feature/user-devices` --- ### 📝 Commits (10+) - [`eef36c9`](https://github.com/immich-app/immich/commit/eef36c96162a38546bc4dae502525e2c20b0872a) feat: manage authorized devices - [`b756856`](https://github.com/immich-app/immich/commit/b756856af582701e5912e91bce36ed3ba775dc4c) chore: open api - [`f311c10`](https://github.com/immich-app/immich/commit/f311c10bd046ec55c1fcb7fd1ec1a883ed93772b) get header from mobile app - [`7b84bb9`](https://github.com/immich-app/immich/commit/7b84bb9ea75ceed9add579ce7f411daaeecdfd1c) write header from mobile app - [`074ea92`](https://github.com/immich-app/immich/commit/074ea920ff9795812943835ebc815f15b7aa40a7) styling - [`c930029`](https://github.com/immich-app/immich/commit/c93002917e70cf81974f90610d4ea54fdc7922b6) Merge branch 'feature/user-devices' of github.com:immich-app/immich into feature/user-devices - [`24afb92`](https://github.com/immich-app/immich/commit/24afb92da1ba5fa617c0602ab9f24b2974144a36) fix unit test - [`fadd60e`](https://github.com/immich-app/immich/commit/fadd60e82ee5483c39c1965c7d42cf1bede4bce6) feat: use relative time - [`79c17fc`](https://github.com/immich-app/immich/commit/79c17fc00a23df213e1cc4712404d77a5cf4a5c0) feat: update access time - [`4308f5d`](https://github.com/immich-app/immich/commit/4308f5d7a55d87eda8f5be9087f669ababc01e27) fix: tests ### 📊 Changes **41 files changed** (+1208 additions, -92 deletions) <details> <summary>View changed files</summary> 📝 `mobile/lib/modules/login/providers/authentication.provider.dart` (+17 -0) 📝 `mobile/openapi/.openapi-generator/FILES` (+3 -0) 📝 `mobile/openapi/README.md` (+3 -0) ➕ `mobile/openapi/doc/AuthDeviceResponseDto.md` (+20 -0) 📝 `mobile/openapi/doc/AuthenticationApi.md` (+99 -0) 📝 `mobile/openapi/doc/LogoutResponseDto.md` (+2 -2) 📝 `mobile/openapi/lib/api.dart` (+1 -0) 📝 `mobile/openapi/lib/api/authentication_api.dart` (+84 -0) 📝 `mobile/openapi/lib/api_client.dart` (+2 -0) ➕ `mobile/openapi/lib/model/auth_device_response_dto.dart` (+151 -0) ➕ `mobile/openapi/test/auth_device_response_dto_test.dart` (+52 -0) 📝 `mobile/openapi/test/authentication_api_test.dart` (+10 -0) 📝 `server/apps/immich/src/controllers/auth.controller.ts` (+19 -5) 📝 `server/apps/immich/src/controllers/oauth.controller.ts` (+4 -3) 📝 `server/apps/immich/src/decorators/auth-user.decorator.ts` (+14 -1) 📝 `server/apps/immich/src/utils/patch-open-api.util.ts` (+4 -0) 📝 `server/immich-openapi-specs.json` (+97 -4) 📝 `server/libs/domain/src/auth/auth.core.ts` (+13 -6) 📝 `server/libs/domain/src/auth/auth.service.spec.ts` (+72 -11) 📝 `server/libs/domain/src/auth/auth.service.ts` (+17 -6) _...and 21 more files_ </details> ### 📄 Description View and logout Authorized Devices. Add device type/name to user token table for display purposes. TODO: - [x] Unit tests - [x] Device image (chrome, android, iOS, etc.) - [x] Update `updatedAt` to be last access time ![image](https://user-images.githubusercontent.com/4334196/234440054-4f2b8ada-0cd3-49fa-8969-d3ab208f4c04.png) ![image](https://user-images.githubusercontent.com/4334196/234302356-209b72ce-7d6a-46c1-b006-6064fca8f353.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 14:05:47 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#9494