Skip to content

Commit e5b5ed6

Browse files
author
Jamie Hannaford
authored
Update generate_token.php
1 parent 7de4609 commit e5b5ed6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

samples/identity/v2/generate_token.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
use OpenStack\Common\Transport\Utils as TransportUtils;
99
use OpenStack\OpenStack;
1010

11+
$authUrl = 'https://example.com:5000/v2.0';
12+
1113
$httpClient = new Client([
12-
'base_uri' => TransportUtils::normalizeUrl(getenv('OS_AUTH_URL')),
14+
'base_uri' => TransportUtils::normalizeUrl($authUrl),
1315
'handler' => HandlerStack::create(),
1416
]);
1517

1618
$options = [
17-
'authUrl' => 'https://example.com:5000/v2.0',
19+
'authUrl' => $authUrl,
1820
'region' => 'RegionOne',
1921
'username' => 'foo',
2022
'password' => 'bar',

0 commit comments

Comments
 (0)