IElevatableIdentityProviderService

IElevatableIdentityProviderService in assembly SanteDB.Core.Api version 2.1.151.0

Summary

Represents an identity provider that allows for elevation

Events

EventTypeDescription

OverrideRequested

EventHandler<SecurityOverrideEventArgs>

The caller has requested an override

Operations

OperationResponse/ReturnInput/ParameterDescription

ElevatedAuthenticate

IPrincipal

String userName String password String tfaSecret String purpose String[] policies

Requests the currently established principal to be elevated

Implementations

None

Example Implementation

/// Example Implementation
using SanteDB.Core.Security.Services;
/// Other usings here
public class MyElevatableIdentityProviderService : SanteDB.Core.Security.Services.IElevatableIdentityProviderService { 
	public String ServiceName => "My own IElevatableIdentityProviderService service";
	/// <summary>
	/// The caller has requested an override
	/// </summary>
	public event EventHandler<SecurityOverrideEventArgs> OverrideRequested;
	/// <summary>
	/// Requests the currently established principal to be elevated
	/// </summary>
	public IPrincipal ElevatedAuthenticate(String userName,String password,String tfaSecret,String purpose,String[] policies){
		throw new System.NotImplementedException();
	}
}

References

Last updated