Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created March 17, 2020 07:27
public class MyEvents : WsFederationEvents
{
private readonly IRepository _repository
public MyEvents(IRepository repository)
{
_repository=repository;
}
}
.AddWsFederation(options =>
{
//ADFS
options.Wtrealm = "https://localhost/example/";
options.MetadataAddress = "https://adfs.example.be/federationmetadata/2007-06/federationmetadata.xml";
options.EventsType=typeof(MyEvents);
options.TokenValidationParameters.ValidAudiences = new string[] { "https://localhost/example/" };
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment