Interface IRVAuthenticationProvider

The interface that must be implemented and registered when adding Reveal in Startup ConfigureServices. It returns credentials to be used when getting data from a given data source.

Namespace: Reveal.Sdk
Assembly: Infragistics.Reveal.SDK.Server.dll
Syntax
public interface IRVAuthenticationProvider
Examples
public void ConfigureServices(IServiceCollection services)
{
    ...
    services
        .AddMvc()
        .AddReveal(builder =>
            {   
                builder.AddAuthenticationProvider<MyAuthenticationProvider>(); //register the type
                builder.AddAuthenticationProvider(new MyAuthenticationProvider()); //or you could register a specific instance this way
            });
    ...
}

Methods

ResolveCredentialsAsync(IRVUserContext, RVDashboardDataSource)

Returns the credentials to use for this data source, null means there are no credentials associated and the data loading process will fail.

Declaration
Task<IRVDataSourceCredential> ResolveCredentialsAsync(IRVUserContext userContext, RVDashboardDataSource dataSource)
Parameters
Type Name Description
IRVUserContext userContext

The user details credentials are being returned for

RVDashboardDataSource dataSource

The data source to return credentials for

Returns
Type Description
System.Threading.Tasks.Task<IRVDataSourceCredential>

The credentials to use for this data source