PKI ACME Login REST API - dogtagpki/pki GitHub Wiki

Overview

The PKI ACME Login operation will authenticate the user, establish a session on the server, return the user profile, and return a cookie containing the session ID.

Request

  • Method: POST

  • URL: /acme/login

  • Authentication: Required

  • Authorization: Not required

Response

Success

  • Code: 200

  • Content:

{
    "id": <user ID>,
    "FullName": <full name>,
    "Roles": {
        "Role": <array of roles>
    }
}

Unauthenticated

  • Code: 401

Examples

JSON
$ curl \
    -s \
    --request POST \
    -u admin:Secret.123 \
    --cookie-jar cookies \
    https://pki.demo.dogtagpki.org/acme/login | python -m json.tool
{
    "Attributes": {
        "Attribute": []
    },
    "id": "admin",
    "FullName": "Administrator",
    "Roles": {
        "Role": [
            "Administrators"
        ]
    }
}

Sources

See Also

⚠️ **GitHub.com Fallback** ⚠️