Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

oxide auth login not working - "Credentials missing or invalid" #230

@smklein

Description

@smklein

Using release 0.2.6, I tried the following:

$ oxide --debug auth login
Oxide instance host (this assumes https:// unless http:// is given as a part of the URL): http://mercury.oxide-preview.com/
Jul 06 20:06:29.628 DEBG starting new connection: http://mercury.oxide-preview.com/
Jul 06 20:06:29.830 DEBG response '200 OK' for http://mercury.oxide-preview.com/device/auth
Opening http://mercury.oxide-preview.com/device/verify in your browser.
Please verify user code: MQPZ-GRKJ
Jul 06 20:06:30.144 DEBG starting new connection: http://mercury.oxide-preview.com/
Jul 06 20:06:30.349 DEBG response '400 Bad Request' for http://mercury.oxide-preview.com/device/token
Jul 06 20:06:35.350 DEBG starting new connection: http://mercury.oxide-preview.com/
Jul 06 20:06:35.608 DEBG response '400 Bad Request' for http://mercury.oxide-preview.com/device/token

At this point, I went to the console, hit the button, and came back:

Jul 06 20:06:40.609 DEBG starting new connection: http://mercury.oxide-preview.com/
Jul 06 20:06:40.816 DEBG response '200 OK' for http://mercury.oxide-preview.com/device/token
Jul 06 20:06:40.816 DEBG request: RequestBuilder { method: GET, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("mercury.oxide-preview.com")), port: None, path: "//session/me", query: None, fragment: None }, headers: {"accept": "application/json", "content-type": "application/json", "authorization": "Bearer oxide-token-eb6eb0700e09a36e7060f5deb1e72f6a8cdfc479"} }
Jul 06 20:06:40.816 DEBG starting new connection: http://mercury.oxide-preview.com/
Jul 06 20:06:41.021 DEBG response '401 Unauthorized' for http://mercury.oxide-preview.com//session/me
✘ You are not authenticated: credentials missing or invalid
Try authenticating with: `oxide auth login`

In the Nexus log, I saw the following:

{"msg":"request completed","v":0,"name":"nexus","level":30,"time":"2022-07-06T20:07:10.410363035Z","hostname":"oxz_nexus","pid":16537,"uri":"//session/me","method":"GET","req_id":"b1b13a1e-2ca3-4baf-bcd0-8ba68987d490","remote_addr":"172.20.16.122:59858","local_addr":"172.20.15.226:80","component":"dropshot_external","name":"e6bff1ff-24fb-49dc-a54e-c6a350cd4d6c","error_message_external":"credentials missing or invalid","error_message_internal":"Actor required","response_code":"401"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions