Skip to content

Error - Unauthorized when accessing from curl #12

@karstengresch

Description

@karstengresch

Followed the instructions from https://github.com/OpenShiftDemos/openshift-cd-demo which I finally got running locally with oc cluster up (setup and config see here: ).

Tried to create a task:

curl -i -u 'redhat:redhat1!' -H "Content-Length: 0" -X POST http://tasks-dev.apps.127.0.0.1.nip.io/ws/tasks/task1

Result:

HTTP/1.1 401 Unauthorized
Expires: 0
Cache-Control: no-cache, no-store, must-revalidate
X-Powered-By: Undertow/1
Server: JBoss-EAP/7
Pragma: no-cache
Date: Tue, 04 Apr 2017 18:37:18 GMT
WWW-Authenticate: Basic realm="RealmUsersRoles"
Content-Type: text/html;charset=UTF-8
Content-Length: 71
Set-Cookie: 5d1905427a4600d0082930fc85649db9=21c9d5dd6cefe390218571514e4c1701; path=/; HttpOnly

<html><head><title>Error</title></head><body>Unauthorized</body></html>

Just to let you know...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions