acumen/authorization

Authorization types for ACME domain validation.

An authorization represents the server’s authorization for an account to represent a specific identifier (domain). Each authorization contains one or more challenges that can be completed to prove control.

Types

An ACME authorization for an identifier.

pub type Authorization {
  Authorization(
    url: url.Url,
    status: Status,
    identifier: acumen.Identifier,
    challenges: List(challenge.Challenge),
    expires: option.Option(timestamp.Timestamp),
    wildcard: Bool,
  )
}

Constructors

  • Authorization(
      url: url.Url,
      status: Status,
      identifier: acumen.Identifier,
      challenges: List(challenge.Challenge),
      expires: option.Option(timestamp.Timestamp),
      wildcard: Bool,
    )

    Arguments

    url

    The authorization URL.

    status

    Current authorization status.

    identifier

    The identifier (domain or IP) being authorized.

    challenges

    Available challenges to complete.

    expires

    When the authorization expires.

    wildcard

    Whether this is for a wildcard domain.

Authorization status.

pub type Status {
  Pending
  Valid
  Invalid
  Deactivated
  Expired
  Revoked
}

Constructors

  • Pending

    Authorization created, challenges not yet completed.

  • Valid

    A challenge was successfully completed.

  • Invalid

    A challenge failed or authorization was abandoned.

  • Deactivated

    Authorization was deactivated by the client.

  • Expired

    Authorization expired before completion.

  • Revoked

    Authorization was revoked by the server.

Search Document