Skip to content
Snippets Groups Projects
Forked from Maunium / synapse
Source project has a limited visibility.
  • Daniel Wagner-Hall's avatar
    6a4b650d
    Attempt to validate macaroons · 6a4b650d
    Daniel Wagner-Hall authored
    A couple of weird caveats:
     * If we can't validate your macaroon, we fall back to checking that
       your access token is in the DB, and ignoring the failure
     * Even if we can validate your macaroon, we still have to hit the DB to
       get the access token ID, which we pretend is a device ID all over the
       codebase.
    
    This mostly adds the interesting code, and points out the two pieces we
    need to delete (and necessary conditions) in order to fix the above
    caveats.
    6a4b650d
    History
    Attempt to validate macaroons
    Daniel Wagner-Hall authored
    A couple of weird caveats:
     * If we can't validate your macaroon, we fall back to checking that
       your access token is in the DB, and ignoring the failure
     * Even if we can validate your macaroon, we still have to hit the DB to
       get the access token ID, which we pretend is a device ID all over the
       codebase.
    
    This mostly adds the interesting code, and points out the two pieces we
    need to delete (and necessary conditions) in order to fix the above
    caveats.