Skip to content

[Feature]: Reuse token when running on server  #1000

@tkurki

Description

@tkurki

Operating System

Other

Browser

Other

KIP Version

4.6.0

Signal K Server Version

2.23.0-beta.2

Bug Description

Kip does not detect an existing authenticated session but forces the user to explicitly login in Kip.

Steps to Reproduce

  1. Login in the Admin UI
  2. Navigate to Kip

Configurations screen says Server authentication or Device Token required and Connectivity screen shows Login to server as disabled.

I would expect Kip to recognise the existing session and use it transparently, without any action needed from the user. As this is a prerequisite for configuration sharing I think login should be as smooth as possible.

/skServer/loginStatus returns information about the session, for example

{
    "status": "loggedIn",
    "readOnlyAccess": true,
    "authenticationRequired": true,
    "allowNewUserRegistration": true,
    "allowDeviceAccessRequests": true,
    "userLevel": "admin",
    "username": "XXXX",
    "securityWasEnabled": false
}

PS

Toggling Login to server but then canceling the Sign in to Signal K dialog leaves the Login to server enabled and [Set credential] button enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug report

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions