Configuration.host is really a URL not a host
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
The report uses Configuration with AdminApi->admin_apps_list, but names no source file or test. Reproduce the example with a URL-valued host, then trace how Configuration builds the request URL and verify the endpoint receives the intended request rather than returning HTML 404. Done means the reported URL form has defined, working behavior.
Written by the indexing model from the issue text.
Description
I passed host = 'https://domain.of.my.instance' to the Configuration object and all I got was a lousy HTML (t-shirt material right there).
import os
import sys
import authentik_client
def main():
host = os.environ.get("AUTHENTIK_HOST")
token = os.environ.get("AUTHENTIK_TOKEN")
if not token:
print("AUTHENTIK_TOKEN unset")
sys.exit(1)
if not host:
print("AUTHENTIK_HOST unset")
sys.exit(1)
configuration = authentik_client.Configuration(
host=host,
access_token=token
)
with authentik_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = authentik_client.AdminApi(api_client)
try:
api_response = api_instance.admin_apps_list()
print("The response of AdminApi->admin_apps_list:\n")
print(api_response)
except authentik_client.ApiException as e:
print("Exception when calling AdminApi->admin_apps_list: %s\n" % e)
if __name__ == "__main__":
main()
When invoking it I got:
python move-okta-app-to-authentik.py
Exception when calling AdminApi->admin_apps_list: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'date': 'Thu, 30 Oct 2025 20:43:11 GMT', 'content-type': 'text/html; charset=utf-8', 'content-length': '6743', 'referrer-policy': 'same-origin', 'vary': 'Accept-Encoding, Cookie', 'x-authentik-id': 'eb6d60959c6042fbb4fd3c60bfdc5284', 'x-content-type-options': 'nosniff', 'x-frame-options': 'DENY', 'x-powered-by': 'authentik', 'strict-transport-security': 'max-age=31536000; includeSubDomains'})
HTTP response body:
<long body here>
- Dominant language
- Mustache
- Stars
- 2
- Forks
- 1
- Avg merge
- 15h 5m
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
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 goauthentik/client-python
-
Data returned from the API on StagesApi().stages_invitation_invitations_create() fails validation Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
goauthentik/client-python#18 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
goauthentik/client-python#11 · 2 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
goauthentik/client-python#10 ·
All issues in goauthentik/client-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
mksglu/context-mode#1200 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr impact:auth-provider issue-rating: 🌊 off-meta tidepool P2
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100