Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Token authentification #12

@remisarrailh

Description

@remisarrailh

Instead of using a password, the client should mostly use temporary token.
Password will only be used to provided a token to the client.

Token are stored with an expiration date (and ip) into variables.

Token are erased when

  • Client asked to be disconnected
  • It expires
  • The device is unplugged / system restart (a persistant mode could be useful)

Example:

First authentication

  • Websocket ask for password
  • Client answer with password
  • Websocket send token
  • Client save token in localStorage (for a given time)

Second authentication

  • Websocket ask for password
  • Client respond with token
  • Websocket check Token association
  • Client logged in automatically.

Disconnection

  • Client click on disconnect
  • Client erase token from localStorage.
  • Client send websocket a clear token commands
  • Websocket reset token.

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