예제 #1
0
 public IdentityController(UserDataSource uds, IdentityDataSource ids, IdentityService isrv,
                           JwtAuthenticationService jwtAuthSrv)
 {
     _userDataSource           = uds ?? throw new ArgumentNullException(nameof(uds));
     _identityDataSource       = ids ?? throw new ArgumentNullException(nameof(ids));
     _identityService          = isrv ?? throw new ArgumentNullException(nameof(isrv));
     _jwtAuthenticationService = jwtAuthSrv ?? throw new ArgumentNullException(nameof(jwtAuthSrv));
 }
예제 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            var IdentityURL = new Uri("http://identity.api.msdial.com/Directory.svc");

            source = new DataReference.IdentityDataSource(IdentityURL)
            {
                MergeOption                     = MergeOption.OverwriteChanges,
                IgnoreMissingProperties         = true,
                IgnoreResourceNotFoundException = true,
                Credentials                     = CredentialCache.DefaultNetworkCredentials
            };

            txtResults.AppendText("PACA Role Check:" + Environment.NewLine);
        }