Basic Authentication
API User Deprecation
API users are deprecated. Use API keys for automation, and meshstack login
when you work with the API yourself.
Basic authentication with API Users is the legacy way to authenticate requests towards the meshObject API. API Users implement a coarse-grained permission model with access to all resources in meshStack equivalent to the "Admin permission" level of API Keys.
API keys cannot do everything yet. You still need an API user for:
- the declarative import of meshObjects
- creating and deleting meshObjectCollections
- the metering API
Basic Authentication requires API clients to provide a valid username and password to authenticate. You can create API users for Basic Authentication via the admin area in meshPanel.
To authenticate requests via Basic Authentication, please set the Authorization header in your requests as follows:
Authorization: Basic <base64 encoded username:password>