Comments (8)
In my installation, both "Grocy" and the "Grocy API" are enabled.
Another test is to set up an additional Grocy installation with a different URL and enabled "...exposed to anonymous visitors"
from grocy_ynh.
ok the error was then probably on me.
I should really the first installation the button
"Should this app be exposed to anonymous visitors" to no.
i have now added visitors "grocy" and it works.
problem solved thanks for the help @memo-567
from grocy_ynh.
Have you tried your Grocy API Endpoint is working?
your-grocy.url/api should give you a page with information about API and a method to test API-keys.
from grocy_ynh.
yes it works
but if you enter username and password behind the graphical interface.
if you look at the logfile is asked for username and password of yunohost. i think here must be made something own.
like freshrss
there is also a separate api path
but if you query this there is no username and password request
or do I understand this wrong
from grocy_ynh.
It sounds as if access without login was not activated during the installation.
from grocy_ynh.
when curl command comes with me an html code to nginx
<html>
<head><title>302 Found</title><script type="text/javascript" src="/ynh_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynh_overlay.css"><script type="text/javascript" src="/ynhtheme/custom_port
al.js"></script><link type="text/css" rel="stylesheet" href="/ynhtheme/custom_overlay.css"></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
<html>
<head><title>302 Found</title><script type="text/javascript" src="/ynh_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynh_overlay.css"><script type="text/javascript" src="/ynhtheme/custom_port
al.js"></script><link type="text/css" rel="stylesheet" href="/ynhtheme/custom_overlay.css"></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
so the api path belongs to the reserve proxy differently.
the api path is always referenced to username and password gui.
as I said I also use with yunohost freshrss and there it is so that the api path without the user gui is referred directly.
It sounds as if access without login was not activated during the installation.
for me the grocy api is allowed with the guests/visitors.
from grocy_ynh.
You're welcome!
If Android access works now, feel free to close this issue.
from grocy_ynh.
Hi !
For me it's still an issue because users should be able to access Grocy's API without exposing the login screen
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
You should include this path in the /api permission
(I have no packaging experience so i can't help further)
Informations from :
patzly/grocy-android#255
Have a great day
from grocy_ynh.
Related Issues (18)
- Frontend problem HOT 7
- Cannot upload picture due to error 413 - Request entity too large HOT 1
- Installation does not finish HOT 1
- Unable to use REST API for external apps HOT 4
- Changing path in Action: Can't access grocy in sub-directory HOT 6
- Enable SSO or LDAP
- Upgrading from 3.1.3~ynh4 to 3.2.0~ynh1 fails HOT 5
- Stopped working after upgrading to 3.2.0 HOT 4
- Table Option changes not persistent HOT 8
- LDAP authentication not working / configured improperly HOT 1
- Unable to change currency to USD from Euros HOT 3
- Unable to access grocy_ynh app without the yunohost SSO screen gatekeeping access HOT 1
- Api permission enhancement HOT 3
- Grocy Version 4.0.0 released HOT 1
- Upgrade 3.3.2~ynh3 -> 4.0.1~ynh1 502 Bad Gateway HOT 12
- "The page isn’t redirecting properly" after upgrading to 4.0.2~ynh1 HOT 3
- No access after upgrade HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grocy_ynh.