Skip to content

Why do we need browser verification for authentication? #6936

Description

@sud0pacman

Your use case

Summary

We had a problem while authenticating via browser due to differences of work mechanisms of browsers. I.e. when I try to login with Brave browser, it had different caching mechanisms and it caused crashing in the app or missing required tokens like CSRF.

Auth in the app without referring to webview

So we do realize that web mechanisms could be different and it creates more difficulty to handle those scenarios. In the end, my idea is here:

We could implement authentication within the app via REST or JWT tokens to avoid webview related problems like caching issues wheras CSRF goes missing with every load.

I do acknowledge that this may be a huge effort and as I'm only getting started to learn more about matrix and its components around it, I'd like to do my own research on this and somehow be able to help. I might be lacking references, so please can you give me some pointers to documentations?

Have you considered any alternatives?

A copy-pasta from above: "We could implement authentication within the app via REST or JWT tokens to avoid webview related problems like caching issues wheras CSRF goes missing with every load."

Additional context

Image Image

Are you willing to provide a PR?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-EnhancementNew features, changes in functionality, performance boosts, user-facing improvementsX-Needs-InfoThis issue is blocked awaiting information from the reporter

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions