A simple demo of using Nginx as a reverse proxy to add basic authentication.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Get user info | |
$user_info = json_decode(base64_decode(explode('.', apache_request_headers()['X-Amzn-Oidc-Data'])[1])); | |
?> | |
<h2>User Info : </h2> | |
<p> | |
First Name : <?php echo $user_info->given_name; ?><br/> | |
Last Name : <?php echo $user_info->family_name; ?><br/> | |
Email : <?php echo $user_info->email; ?><br/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data lake | data warehouse | data hub |
---|