Skip to content
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

Api permission enhancement #54

Open
Vitriia opened this issue Jun 20, 2023 · 3 comments
Open

Api permission enhancement #54

Vitriia opened this issue Jun 20, 2023 · 3 comments

Comments

@Vitriia
Copy link

Vitriia commented Jun 20, 2023

Hi !

Actually grocy android app can't access to Grocy's api. The actual workaround is to give .main permission to visitors and not just .api

It's because when you add a server from Android Grocy's app, the app check at this url to get the grocy's server version : http(s)://your.grocy.server/api/system/info?GROCY-API-KEY=YourApiKey

So this path should be included in the .api permission
(I have no packaging experience so i can't help further)


Related to #41

Informations from :
patzly/grocy-android#255


Have a nice day

@ericgaspar
Copy link
Member

Should be fixed with #57

@Vitriia
Copy link
Author

Vitriia commented Dec 21, 2023

I'm sorry but it's not fixed :
a curl http(s)://your.grocy.server/api/system/info?GROCY-API-KEY=YourApiKey on Grocy 4.0.3~ynh2 return the Yunohost portal and not the waited answer (Grocy's version)

@ericgaspar ericgaspar reopened this Dec 21, 2023
@obrenckle
Copy link

Hi, thank you for your work on Yunohost !

A small follow-up on this issue, as it was updated recently:
As of Grocy 4.2.0~ynh1, curl http(s)://your.grocy.server/api/system/info?GROCY-API-KEY=YourApiKey still returns the Yunohost portal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants