features/authentication/authenticate.feature in conjur-cli-6.0.0 vs features/authentication/authenticate.feature in conjur-cli-6.0.1
- old
+ new
@@ -1,10 +1,11 @@
Feature: Authenticate a role
Scenario: Get a JSON token
When I successfully run `conjur authn authenticate`
- Then the JSON should have "data"
+ Then the JSON should have "protected"
+ And the JSON should have "payload"
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=".*"/
@@ -14,10 +15,10 @@
"""
- !user alice
"""
And I login as "alice"
When I successfully run `conjur authn authenticate`
- Then the JSON at "data" should be "alice"
+ Then the JSON should be a hash
@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