Skip to content

[BUG] OAuth2 token is not renewed after being revoked #2655

@jesmrec

Description

@jesmrec

Steps to reproduce

  1. Start an OAuth2 session
  2. After some minutes and correct renewals, open webUI -> Settings -> Security, and revoke the Android session
  3. In the app, session finishes, displaying a Snackbar "Authentication Failed". Open "Manage accounts", tap on key icon to re-authenticate.
  4. Reauthentication

Actual behaviour

From this point, the app is not automatically renewed anymore. Once the token expires, regular 401 is received

<?xml version="1.0" encoding="utf-8"?> <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"> <s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception> <s:message>No public access to this resource., No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, Bearer token was incorrect, No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured</s:message> </d:error>

but no POST to renew

Expected behaviour

POST sent to renew

Samsung S9 v9
NExus 5X v8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions