Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Basic auth with web connector

Dear Sirs,

 

I create a verry small example to load tables from a php website with basic auth.

But the web connector does not authenticate with the php app.

This is the verry basic PHP code:

 

<?php
if (!isset($_SERVER['PHP_AUTH_USER'])) 
{
    header('WWW-Authenticate: Basic realm="My Realm"');
    header('HTTP/1.0 401 Unauthorized');
    echo 'Text to send if user hits Cancel button';
    exit;
} 
else 
{
?>
<table>
<thead>
<tr><td>Name</td><td>Password</td></tr>
</thead>
<tbody>
<tr><td><?=$_SERVER['PHP_AUTH_USER']?></td><td><?=$_SERVER['PHP_AUTH_PW']?></td></tr>
</tbody>
</table>
<?php
}
?>

Now when I do the following the screen always comes back. I can't authenticate.

How to do this basic authentication correctly?

2019-03-07 11_56_25-Window.png

 

Kind regards

3 REPLIES 3
radityopw
New Member

i have same problem.

does anyone solve this ?

Anonymous
Not applicable

unfortunatly… No solution yet.....

Same problem... Any suggestion?

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.