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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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