Sha256: 9ea441140f52aefe0d77fba7fe2fb617859cc4ad5b13829820b175905085d08b

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 KB

Contents

Feature: Authenticate a role

  Scenario: Get a JSON token
    When I successfully run `conjur authn authenticate`
    Then the JSON should have "data"
    And the JSON should have "signature"
 
  Scenario: Get an auth token as HTTP Authorize header
    When I successfully run `conjur authn authenticate -H`
    Then the output should match /Authorization: Token token=".*"/

  Scenario: The API key of a new user is available and can be used to authenticate.
    Given I load the policy:
    """
    - !user alice
    """
    And I login as "alice"
    When I successfully run `conjur authn authenticate`
    Then the JSON at "data" should be "alice"

  @announce-command
  @announce-output
  Scenario: The access token can be continuously refreshed in a file.
    When I run `env CONJUR_TOKEN_LIFESPAN=2 CONJUR_TOKEN_REFRESH_DELAY=1 CONJURAPI_LOG=stderr conjur authn authenticate -f /tmp/token` interactively
    And I run `sleep inf`
    Then the output should contain:
    """
    Authenticating admin to account cucumber
    Refreshed Conjur auth token to "/tmp/token"
    Authenticating admin to account cucumber
    Refreshed Conjur auth token to "/tmp/token"
    Authenticating admin to account cucumber
    Refreshed Conjur auth token to "/tmp/token"
    """

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
conjur-cli-6.0.0 features/authentication/authenticate.feature
conjur-cli-6.0.0.rc1 features/authentication/authenticate.feature