Project

Profile

Help

Issue #6628 » pulp-token-404.txt

bmclaugh, 05/01/2020 07:57 PM

 
$ http 'http://bmclaugh-usersys-redhat-com:8080/v2/'
HTTP/1.1 401 Access to the requested resource is not authorized. A Bearer token is missing in a request header.
Connection: keep-alive
Content-Length: 103
Content-Type: text/plain; charset=utf-8
Date: Thu, 30 Apr 2020 12:56:06 GMT
Docker-Distribution-API-Version: registry/2.0
Server: nginx/1.16.1
Www-Authenticate: Bearer realm="http://bmclaugh-usersys-redhat-com:8080/token",service="bmclaugh-usersys-redhat-com:8080"
401: Access to the requested resource is not authorized. A Bearer token is missing in a request header.
$ http 'http://bmclaugh-usersys-redhat-com:8080/token?service=bmclaugh-usersys-redhat-com:8080'
HTTP/1.1 404 Not Found
Connection: keep-alive
Content-Length: 153
Content-Type: text/html
Date: Thu, 30 Apr 2020 12:56:29 GMT
Server: nginx/1.16.1
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.16.1</center>
</body>
</html>
$ cat settings/settings.py
CONTENT_ORIGIN='bmclaugh-usersys-redhat-com:8080'
ANSIBLE_API_HOSTNAME='http://bmclaugh-usersys-redhat-com:8080'
ANSIBLE_CONTENT_HOSTNAME='http://bmclaugh-usersys-redhat-com:8080/pulp/content'
TOKEN_SERVER = "http://bmclaugh-usersys-redhat-com:8080/token"
TOKEN_SIGNATURE_ALGORITHM = 'ES256'
PUBLIC_KEY_PATH = '/tmp/all/public_key.pem'
PRIVATE_KEY_PATH = '/tmp/all/private_key.pem'
$ podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7c885e63fbb9 docker.io/pulp/pulp-fedora31:latest 29 minutes ago Up 24 minutes ago 0.0.0.0:8080->80/tcp pulp
(1-1/2)