-
-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Adds ability to use API Key to "sign in" #708
base: master
Are you sure you want to change the base?
Conversation
Why do we want this? |
Look at the linked issue here wger-project/wger#1847 , without this they wouldn't be able to use the app at all. Since the idea is to set up a 3rd party auth service in front, e.g. Authelia, which ensures that the user is authenticated and passes it on to Wger. This in turn means, that the user does not have a username/password combination that works for Wger (only a username), and they would be unable to sign in using the app. Instead they can provide the API token from the settings page, and use that instead. |
interesting. thanks. so i suppose this would also require a way to register users with wger and instantiate api keys for them somehow. |
That's taken care of in this PR wger-project/wger#1859 , when enabled, Wger should assume that any request with e.g. So in the case for the app, that wouldn't be required/make any sense to implement the part for registering, as that would be outside the scope of the app, in the case of having that specific setup. The only way to implement it, would be to open a webview of the instance URL, let the user authenticate, and then point them to the API key page. But I think that is out of scope. I think it's expected, that with a setup that uses Auth Proxy, that registering using the app is not possible :) |
Yes this would be used when authenticating via an external service or SSO |
But it would maybe be nice, to hide it under an "advanced options", together with custom server URL as well. |
yes, definitely. I can help you with that (and with the tests) |
I might have time to look at it, but feel free to take over the PR. I just made it to get the ball rolling, and show the basic idea that I have :) EDIT: changed title and converted to draft to reflect this. I should have started by doing that. |
Description (Proposed Changes)
Link to the issue :
Tests
Unsure how to do this.
Checklist
Please check that the PR fulfills all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).