Created
March 17, 2020 07:27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyEvents : WsFederationEvents | |
{ | |
private readonly IRepository _repository | |
public MyEvents(IRepository repository) | |
{ | |
_repository=repository; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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