Skip to content

Have the authentication run in background, if instance isn't initialized #317

Closed
@kevinlacaille

Description

@kevinlacaille

Issue: If a user were to run a Planet API (i.e., planet orders download my-order-id) without first running planet auth init, it would throw an error.

Proposal: Have the authentication API run in the background the first time a user queries a Planet API.

For instance, have the client recognize that the user hasn't run planet auth init, the prompt for them for their credentials (i.e., email and password).

Alternative: If the user hasn't run planet auth init before running a Planet API, have the client echo back a useful error message such as: “User’s credentials (Planet login email & password) must be provided to run Planet APIs. Run planet auth init to initialize your Planet client.".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions