File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,10 @@ service: example
2828expiration: 60
2929HTTP 200
3030[Captures]
31- created_key: xpath "//code[@id='api-key']/text( )"
31+ created_key: xpath "string( //code[@id='api-key'])"
3232
3333# Use created key
3434GET http://localhost:8080/auth-url/status
35- [Headers]
3635X-Original-URL: http://localhost:8081/
3736X-Api-Key: {{created_key}}
3837HTTP 200
@@ -45,18 +44,16 @@ session_id: {{session}}
4544key: {{created_key}}
4645HTTP 200
4746[Captures]
48- rotated_key: xpath "//code[@id='api-key']/text( )"
47+ rotated_key: xpath "string( //code[@id='api-key'])"
4948
5049# Old key should fail
5150GET http://localhost:8080/auth-url/status
52- [Headers]
5351X-Original-URL: http://localhost:8081/
5452X-Api-Key: {{created_key}}
5553HTTP 401
5654
5755# New key should succeed
5856GET http://localhost:8080/auth-url/status
59- [Headers]
6057X-Original-URL: http://localhost:8081/
6158X-Api-Key: {{rotated_key}}
6259HTTP 200
@@ -72,7 +69,6 @@ Location: /
7269
7370# Deleted key should fail
7471GET http://localhost:8080/auth-url/status
75- [Headers]
7672X-Original-URL: http://localhost:8081/
7773X-Api-Key: {{rotated_key}}
7874HTTP 401
Original file line number Diff line number Diff line change 11{{> header }}
22<div class =" relative p-4 w-full max-w-md h-full md:h-auto" >
3- <div class =" relative p-4 text-center bg-white rounded-lg shadow-sm dark:bg-gray-800 sm:p-5" >
4- <p class =" mb-4 text-md text-gray-900 dark:text-white" >Store this API key now. You won't be able to see it again.</p >
5- <code id =" api-key" class =" block p-2 bg-gray-100 dark:bg-gray-700 break-words" >{{ data.key }} </code >
6- <a href =" /" class =" py-2 px-3 m-2 text-sm font-medium text-center text-white rounded-lg bg-primary-800 hover:bg-primary-700 focus:ring-4 focus:outline-hidden focus:ring-primary-300 dark:focus:ring-primary-900" >Back</a >
7- </div >
3+ <div class =" relative p-4 text-center bg-white rounded-lg shadow-sm dark:bg-gray-800 sm:p-5" >
4+ <p class =" mb-4 text-md text-gray-900 dark:text-white" >Store this API key now. You won't be able to see it again.</p >
5+ <code id =" api-key" class =" block p-2 bg-gray-100 dark:bg-gray-700 break-words" >{{ data.key }} </code >
6+ <a href =" /" class =" py-2 px-3 m-2 text-sm font-medium text-center text-white rounded-lg bg-primary-800 hover:bg-primary-700 focus:ring-4 focus:outline-hidden focus:ring-primary-300 dark:focus:ring-primary-900" >Back</a >
7+ </div >
88</div >
99{{> footer }}
You can’t perform that action at this time.
0 commit comments