Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant' connect using macaroons or bakery_client #1061

Open
Maharacha opened this issue Jun 15, 2024 · 3 comments · May be fixed by #1091
Open

Cant' connect using macaroons or bakery_client #1061

Maharacha opened this issue Jun 15, 2024 · 3 comments · May be fixed by #1091
Assignees
Labels
hint/3.x going on main branch kind/bug indicates a bug in the project

Comments

@Maharacha
Copy link

Maharacha commented Jun 15, 2024

Description

I'm trying to connect to a controller for which I'm using Ubuntu One authentication. I'm following this, trying both with macaroons and with bakery_client. In both cases I get:
ValueError: Some authentication parameters are required : password

Using macaroons

    await model.connect(macaroons=[
        {
            "Name": "macaroon-identity",
            "Value": "abc123",
            "Domain": "api.jujucharms.com",
            "Path": "/identity/",
            "Secure": False,
            "HostOnly": True,
            "Expires": "2024-06-22T13:46:43Z",
        },
    ])

or bakery

    bakery_client = Client()
    bakery_client.cookies = FileCookieJar('/home/foobar/.local/share/juju/cookies/mycontroller.json')
    model = Model()
    await model.connect(bakery_client=bakery_client)

What am I doing wrong?

Urgency

Casually reporting

Python-libjuju version

3.3.1.1

Juju version

3.3.4

Reproduce / Test

Using macaroons

    await model.connect(macaroons=[
        {
            "Name": "macaroon-identity",
            "Value": "abc123",
            "Domain": "api.jujucharms.com",
            "Path": "/identity/",
            "Secure": False,
            "HostOnly": True,
            "Expires": "2024-06-22T13:46:43Z",
        },
    ])

or bakery

    bakery_client = Client()
    bakery_client.cookies = FileCookieJar('/home/foobar/.local/share/juju/cookies/mycontroller.json')
    model = Model()
    await model.connect(bakery_client=bakery_client)
@Maharacha Maharacha added the kind/bug indicates a bug in the project label Jun 15, 2024
@cderici cderici added the hint/3.x going on main branch label Jun 20, 2024
Copy link

This issue is marked as incomplete because it has been open 30 days with no activity. Please remove incomplete label or comment or this will be closed in 5 days.

Copy link

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 27, 2024
@Aflynn50 Aflynn50 reopened this Jul 29, 2024
@erik78se
Copy link

erik78se commented Jul 31, 2024

We're still hit by this. Also, normal connect isn't working. See: #1081

@awnns awnns linked a pull request Aug 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hint/3.x going on main branch kind/bug indicates a bug in the project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants