How to Authenticate with Test Observer¶
Log in as a User¶
Navigate to Test Observer
Click “Log in”
Sign in with your Ubuntu One SSO credentials
You’ll have permissions based on your Launchpad team memberships.
Use the API from Your Browser¶
Prerequisite: Be logged into Test Observer
Navigate to the API docs
https://test-observer-api.canonical.com/docs
Find your endpoint and click “Try it out”
Fill parameters and click “Execute”
The browser handles authentication automatically.
Get an API Key¶
Ask your Test Observer administrator for an application
Provide:
Application name
Required permissions
Receive your API key
Use an API Key¶
Add the key to your requests:
Authorization: Bearer <your-api-key>
Python:
headers = {"Authorization": f"Bearer {api_key}"}
response = requests.get(url, headers=headers)
cURL:
curl -H "Authorization: Bearer ${API_KEY}" <url>
Request More Permissions¶
For users: Ask your admin to grant permissions to your Launchpad team
For applications: Ask your admin to update your application’s permissions
Troubleshooting¶
- Can’t log in?
Clear browser cookies
Try incognito mode