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
-
PendingAuthorization created, challenges not yet completed.
-
ValidA challenge was successfully completed.
-
InvalidA challenge failed or authorization was abandoned.
-
DeactivatedAuthorization was deactivated by the client.
-
ExpiredAuthorization expired before completion.
-
RevokedAuthorization was revoked by the server.