[PR] Direct OAuth login through /auth/login?autoLaunch=1
#18751
Closed
Yetangitu
started this conversation in
Feature Request
Replies: 1 comment
-
The PR has been merged so this request can be closed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have searched the existing feature requests, both open and closed, to make sure this is not a duplicate request.
The feature
It wwould be useful for Immich to have a way to directly access the OAuth login workflow through a URL or parameter (e.g.
autoLaunch=1
, i.e. the opposite of the action mentioned in https://immich.app/docs/administration/oauth#auto-launch).Here's the use case I'm looking at:
For an example of such a workflow have a look at what e.g. Peertube does when accessed through
https://peertube.example.org/plugins/auth-openid-connect/0.1.3/auth/openid-connect
- it does not show the login page but directly activates the OAuth login workflow, landing the user inside a logged-in instance.This feature request aims to achieve the opposite of what
featureFlags.oauthAutoLaunch
enables in that it explicitly calls forautoLaunch
on an instance which does not have this feature enabled instead of always using it with the option to disable it through the use of theautoLaunch=0
parameter. Adding an option to useautoLaunch=1
for the requested feature is probably the most clean way to do it, in./src/routes/auth/login/+page.svelte
(add a check foroauth.isAutoLaunchEnabled
) and./src/lib/utils.ts
(add a test forisAutoLaunchEnabled
)Something along these lines (tested, works as intended):
I submitted a PR for this feature: #18763
Platform
Beta Was this translation helpful? Give feedback.
All reactions