[Data Grid Web] [Data Grid Web] How to do basic authentication with rest api with logged in user?
Forge component by OutSystems R&D
Application Type
Traditional Web

Hi, 

Can someone make simple example where data grid web uses REST API with basic authentication where authentication is done by using currently logged in user?

Currently my application tries to do it like this, but I get this odd "Sign in" popup when user get's to page where grid is and it seems that app does not call that OnAuthentication on that point.

Here is the api:


Here is how I try to identify that is user already authenticated:


.. and this is the odd second sign in popup after user logs in:


This comes after page preparation is ran, so does the data grid component do the call without authentication or what causes this?

Never mind. I figured it out.

When you change that Authentication mode to Custom, then client calls that OnAuthentication everytime, so no more Sign in -popups.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.