{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: BUSL-1.1 ~}}
{{#if @token.isNew}} Expiration time {{!-- Radio to select between 1, 4, 8, 24, or never --}} 10 minutes 8 hours 24 hours Never Custom {{#if @token.expirationTime}} {{/if}} {{else}} {{#if @token.expirationTime}} Token {{#if @token.isExpired}}expired{{else}}expires{{/if}} {{moment-from-now @token.expirationTime interval=1000}} {{else}} Token never expires {{/if}} {{/if}}
{{#unless @token.isNew}}
Token Accessor
Token Secret
{{/unless}}
Client or Management token? See Token types documentation for more information. Client Management
{{#if (eq @token.type "client")}}
{{#if @policies.length}} <:body as |B|> {{B.data.name}} {{B.data.description}} View Policy Definition {{else}}

No Policies

Get started by creating a new policy

{{/if}}
{{#if @roles.length}} <:body as |B|> {{B.data.name}} {{B.data.description}}
{{#each B.data.policies as |policy|}} {{#if policy.name}} {{/if}} {{else}} Role contains no policies {{/each}}
View Role Info
{{else}}

No Roles

Get started by creating a new role

{{/if}}
{{else}}

Management-type tokens have access to all permissions.

{{/if}}