Skip to content

Add /login /logout and cookies for ID in rest server #205

@ethanfrey

Description

@ethanfrey

Let's make this behave a bit more like a normal server....

Server on startup generates a temporary secret

On /login, server tries to access the named key, if successful, it adds a cookie, which is some encrypted Form of the name and password.

On /sign we no longer need to use a name password envelope, just refer to the cookie. This also makes the whole api more standard and /send simpler.

On /logout we unset the cookie.

All cookies will become invalid as soon as the server restarts as there is a new secret, maybe one could add more expiration info as well.

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