Feature: Login Status and User Authentication events
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- api
Research direction
Start by reading the specification sections for endpoints and notifications, then compare them with the existing /loginstatus endpoint mentioned in the issue. The proposal is complete when the specification defines how clients query authentication status and receive login/logout notifications, including the response fields and user groups.
Written by the indexing model from the issue text.
Description
Recent releases of the SignalK Node Server have introduced features that require a user to be authenticated before the feature can be used. Additionally some features are only available to admin users (e.g. applicationData/<appId>/<version>/global)
For client applications to provide a "trimmed" UI displaying the availability of these features it requires that the app be able to:
- Query whether or not a user is authenticated to the server
- Determine the type of user (or groups user is a member of)
Additionally an app needs to know whether there has been a change in the user authentication state e.g. login / logout.
Consider the following scenario:
- SignalK server starts (no user authenticated)
- Application is launched from WebApps section of the Server UI
- User logs in to server using Server UI.
When the application starts no user is authenticated and if it performs a "login status" check it will return "no login", so app will trim UI to reflect this situation.
When the user authenticates using the server UI the app is unaware of the status change until it specifically performs another "login status" check.
The proposal:
Add the following to the specification so each client connection can query and be notified of login status.
- As SignalK node server already implements a
/loginstatusendpoint, either formalise the current endpoint or define an appropriate endpoint and a response.
The response should contain at a minimum the following:
{
userAuthenticated: boolean
userName: string,
userGroups: Array<string>
}
- userAuthenticated: true / false indicating a user is authenticated on the server
- userName: name of the user authenticated on the server
- userGroups: and array containing the names of the groups the authenticated user is a member of.
- Define an
authenticationnotification that is triggered when a user logs in/out of the server that apps can subscribe to and respond to the changing authentication status.
e.g.
{
path: notifications.authentication,
value: {
userAuthenticated: boolean
userName: string,
userGroups: Array<string>
}
}
- Dominant language
- JavaScript
- Stars
- 105
- Forks
- 72
- Avg merge
- 11h 49m
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SignalK/specification
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
SignalK/specification#700 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
SignalK/specification#694 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 54/100
SignalK/specification#691 ·
-
RFC: depth transducer offsets: one sign convention, transducer position, server-derived depthsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
SignalK/specification#688 · 3 comments · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
SignalK/specification#685 · 2 comments ·
All issues in SignalK/specification
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
TheOdinProject/curriculum#31596 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mailcow/mailcow-dockerized#7725 ·
Maintainers usually reply within 1 day
-
bug need-fix
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
hoverkraft-tech/ci-github-common#694 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
solana-foundation/solana-com#2579 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
vercel-labs/agent-skills#385 ·