{{bannerPrefix}} {{bannerText}}

{{#if (and model.approved (not currentUserHasAuthorized) (or (not model.requestEntity) currentUserIsRequesting))}} {{else}}
{{#if model.requestEntity.canRead}} {{#link-to 'vault.cluster.access.identity.show' 'entities' model.requestEntity.id 'details'}} {{requestorName}} {{/link-to}} {{else}} {{requestorName}} {{/if}} {{#if currentUserIsRequesting}}are{{else}}is{{/if}} {{#if model.approved}} authorized to access {{model.requestPath}} {{else}} requesting access to {{model.requestPath}} {{/if}}
{{#if (or (not model.requestEntity) currentUserIsRequesting)}}

Accessor

{{model.id}}
{{/if}}
{{#if (gt model.authorizations.length 0)}} Already approved by {{#each model.authorizations as |authorization index|}} {{~#if authorization.canRead~}} {{#link-to 'vault.cluster.access.identity.show' 'entities' authorization.id 'details'}}{{authorization.name}}{{/link-to}} {{~else~}} {{authorization.name}} {{~/if~}}{{#if (lt (inc index) model.authorizations.length)}},{{/if}} {{/each}} {{else}} Awaiting authorization. {{/if}}
{{/if}} {{#if controlGroupResponse.token}}

We’ve saved your request token, but you may want to copy it just in case: {{controlGroupResponse.token}}

{{/if}} {{#unless (and model.approved (or (not model.requestEntity) currentUserIsRequesting))}}
{{#if model.canAuthorize}} {{#if (or model.approved currentUserHasAuthorized)}} {{#link-to 'vault.cluster.access.control-groups'class="button" data-test-back-link=true}} Back {{/link-to}} {{else}} {{/if}} {{else}} {{/if}}
{{/unless}}