Skip to content

Using Laravel's built-in session authentication instead of collaborators and tokens #4

@fredpedersen

Description

@fredpedersen

I wondered if there was a reason not to use the built-in session for authentication of requests rather than custom tokens. The session id could be sent with the request the same way the access token currently is, however it would provide a number of advantages over the current access token system:

  • Built in expiry - access tokens currently don't expire which is a security risk
  • Automatic integration with Laravel's auth system without needing extra tables, classes
  • Considerably less code to maintain in the plugin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions