Skip to content

Refactor token authentication to cookie/session-based auth instead #22

@charl3sj

Description

@charl3sj

The currently implemented token-based per-request authentication has a high rate of failure within Hasiru Dala's slow network. This could be changed to session-based auth i.e. user signs into Google -> sends token to /login endpoint -> start user session and use JSESSIONID and CSRFTOKEN for subsequent authorisations.

TODOS:

  • Create a /login endpoint which would start a user session based on GoogleId Token received from client
  • Enable CSRF protection
  • Make necessary changes in SecurityConfiguration and related files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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