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

auth requirements #1444

Open
sbinet opened this issue Dec 4, 2024 · 3 comments
Open

auth requirements #1444

sbinet opened this issue Dec 4, 2024 · 3 comments

Comments

@sbinet
Copy link

sbinet commented Dec 4, 2024

hi there,

I am implementing a wallabag compatible server (here: sako).
It's working rather well (if I may say so myself), and the wallabag web extension works well when directed at the sako based endpoint.

when trying to use the android-app, I have had to inject mysterious strings inside the HTML landing page:

(could this be documented somewhere ? I was a bit surprised by this mix of scraping HTML and using the REST API)

with that "hack", I could make android-app properly (or seemingly) authenticate with my sako server, retrieve articles into the android-app cache, and generally use that app.
however, it seems renewing the credentials doesn't work even though it does seem to work for the wallabag extension + sako (where I believe I did correctly implement the /oauth endpoint).

so, here is my question: how is the renewal of credentials supposed to work, and what sako needs to provide for android-app to work properly ?

@Strubbl
Copy link
Contributor

Strubbl commented Dec 4, 2024

Did you check https://github.com/di72nn/wallabag-api-wrapper? Do you already know of wallabag/wallabag#2800?

@Strubbl
Copy link
Contributor

Strubbl commented Dec 4, 2024

I cannot remember correctly, but the HTML strings being searched for during connection test in the app via https://github.com/wallabag/android-app/blob/master/app/src/main/java/fr/gaulupeau/apps/Poche/network/WallabagWebService.java were introduced, because in past there was no API endpoint to detect if we are at a wallabag instance with a given URL.

@sbinet
Copy link
Author

sbinet commented Dec 4, 2024

thanks for the api-wrapper pointer.
I am very naive when comes to java. I managed to compile the project (./gradlew build).
how would I run a modified api-wrapper-examples/src/main/java/wallabag/Main.java ?

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

2 participants