WIP: Initial support for refresh tokens #448
No reviewers
Labels
No labels
Code
Contacts
Design
F-Droid
IndieWeb
Location
Mastodon
Media
Pixelfed
Pleroma
Posting
Question
Reader
Tracker
Translation
Usability
bug
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
inhji/indiepass-android!448
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "FenTiger/refresh-token"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I made a crude start on #447. It roughly "Works For Me (TM)", but it has some problems:
refresh_tokenthen ideally we should send the user back through the OAuth flow from the beginning. I started looking at this, but this will mean rearranging AuthActivity.java so that the flow can be started by triggering an intent or something, rather than only when the user clicks on the "Sign In" button.expires_invalue and refreshing automatically when we know it's expired, rather than relying on the server to tell us when we need to refresh.TokenRetryPolicyto the requests thatAuthActivity.javaissues feels kind of circular. I don't think this will break anything, but I'm not entirely certain.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.