iotile / iotile/coretools

Restrict CLIAuthProvider to only work with PasswordBased root keys

Open
#932 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14
Forks
7
PR merge metrics
No merged PRs in 30d

Description

In order to support a clean interactive authentication flow without any confusion about when a password prompt should be popped up to the user, we need to distinguish between POD User Keys that come from passwords and those that are centrally managed and distributed as random nonce values.

This means that `CLIAuthProvider` should only respond to a new `PasswordBasedRootKey` key type and not generic UserKey requests. Device interactions that support a distinction between password based and raw user keys such as authentication over bluetooth can first request for a UserKey and if that fails request for a PasswordBasedRootKey in order to give interactive login methods a try as a last resort.

Contributor guide

Open the contributing guide

Research direction

Locate CLIAuthProvider and the PasswordBasedRootKey definition, then trace how UserKey requests are dispatched to authentication providers. Confirm the distinction used by device interactions, and identify the relevant authentication tests or entry points. Done means CLIAuthProvider responds only to PasswordBasedRootKey requests while the documented fallback flow remains possible.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.