supergeorg / Grocy-SwiftUI

A client for Grocy for macOS and iOS, written with SwiftUI
GNU General Public License v3.0
177 stars 17 forks source link

Login with user other than admin #189

Open chrismorath opened 9 months ago

chrismorath commented 9 months ago

Not sure if this is really an issue. The only option when logging into the app is to use an API key, but there is no place to define the user you want to login as. Is there something I am missing in my URL or API key that would let me do that?

supergeorg commented 9 months ago

The API key is generated per user. In the API key table, there is the user name and API key. So you select the corresponding key to the user you want to log in.

chrismorath commented 9 months ago

Georg,

Thanks so much for getting back to me!

I think what I’m really having issues with is creating/logging in with a user other than admin. Maybe theres some limitations with the Windows application version? Every time I open the application in Windows it automatically logs in as admin and doesn’t prompt me to enter one.

Also, inside the application the feature for creating new users doesn’t work, however I was able to create some by using that backend tool. But again I can’t login as anything but admin. Do I need to execute a “run as” in the command prompt?

I guess I really know just enough to get in trouble. Anyways, thanks again for your help.

Regards, Chris Morath

On Mon, Nov 20, 2023 at 1:34 AM Georg Meißner @.***> wrote:

The API key is generated per user. In the API key table, there is the user name and API key. So you select the corresponding key to the user you want to log in.

— Reply to this email directly, view it on GitHub https://github.com/supergeorg/Grocy-SwiftUI/issues/189#issuecomment-1818380181, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOZUHHNO3JHSITTPCKPRJDLYFMBZVAVCNFSM6AAAAAA7SJA2D2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJYGM4DAMJYGE . You are receiving this because you authored the thread.Message ID: @.***>

-- Best, Chris Morath @.***