Giter Club home page Giter Club logo

Comments (8)

memo-567 avatar memo-567 commented on June 19, 2024 1

In my installation, both "Grocy" and the "Grocy API" are enabled.

Screenshot Capture -  hw2k com

Another test is to set up an additional Grocy installation with a different URL and enabled "...exposed to anonymous visitors"

from grocy_ynh.

zunami avatar zunami commented on June 19, 2024 1

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.

memo-567 avatar memo-567 commented on June 19, 2024

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.

zunami avatar zunami commented on June 19, 2024

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

Screenshot 2022-05-04 085235

from grocy_ynh.

memo-567 avatar memo-567 commented on June 19, 2024

It sounds as if access without login was not activated during the installation.

Screenshot Capture -  192 168 1 25

from grocy_ynh.

zunami avatar zunami commented on June 19, 2024

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.

Screenshot Capture - 192 168 1 25

for me the grocy api is allowed with the guests/visitors.
Visitors

from grocy_ynh.

memo-567 avatar memo-567 commented on June 19, 2024

You're welcome!
If Android access works now, feel free to close this issue.

from grocy_ynh.

Vitriia avatar Vitriia commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.