Skip to content

Commit 71f110b

Browse files
oalamiryanmats
authored andcommitted
update region tags for IAP (GoogleCloudPlatform#607)
1 parent 9a33da5 commit 71f110b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

iap/src/make_iap_request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @see https://github.com/GoogleCloudPlatform/php-docs-samples/tree/master/iap/README.md
2121
*/
2222

23-
# [START make_iap_request]
23+
# [START iap_make_request]
2424
namespace Google\Cloud\Samples\Iap;
2525

2626
# Imports Auth libraries and Guzzle HTTP libraries.
@@ -80,4 +80,4 @@ function () use ($idToken) {
8080
$response = $http_client->request('GET', '/', []);
8181
return $response;
8282
}
83-
# [END make_iap_request]
83+
# [END iap_make_request]

iap/src/validate_jwt.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @see https://github.com/GoogleCloudPlatform/php-docs-samples/tree/master/iap/README.md
2121
*/
2222

23-
# [START validate_jwt]
23+
# [START iap_validate_jwt]
2424
namespace Google\Cloud\Samples\Iap;
2525

2626
# Imports OAuth Guzzle HTTP libraries.
@@ -92,4 +92,4 @@ function validate_jwt($iap_jwt, $expected_audience)
9292
// Return the user identity (subject and user email) if JWT verification is successful.
9393
return array('sub' => $jws->getClaim('sub'), 'email' => $jws->getClaim('email'));
9494
}
95-
# [END validate_jwt]
95+
# [END iap_validate_jwt]

0 commit comments

Comments
 (0)