PAS Basic Authentication returns WWW-Authenticate:Basic head

Posted by christian.bryan@capita.co.uk on 19-Nov-2018 14:46

HI

We are using the PAS basic authentication method for our application.

The UI is developed in Angular and calls a basic authentication PAS.

The issue we have is that when a user enters invalid credentials and the basic auth pas is called a 401 error is returned and the following header 

WWW-Authenticate:Basic

This header then prompts the browser to prompt for the  username and password credentials, which we do not want as we want the UI to handle the invalid credentials.

Has anyone seen this issue or has a work around? 

Thanks

Christian.

All Replies

Posted by Irfan on 19-Nov-2018 17:06

Hi Christian,

For an AngularJS based applications, you can send "application/json" header with your request you can not prompted anymore for username and password, if your credentials are invalid.

Posted by Shelley Chase on 19-Nov-2018 22:14

Hi Christian,

You need to send the username and password on the connection to PASOE in order to avoid the popup from the browser. We do this in our Kendo UI Builder generated angular applications using the JSDOSession. Have you taken a look using Kendo UI Builder?

-Shelley

This thread is closed