public HighTrustSharePointContext(
     IHttpContextAccessor httpContextAccessor,
     ISharePointClient sharePointClient,
     ITokenIssuer tokenIssuer,
     IOptions <HighTrustSharePointOptions> options) : base(httpContextAccessor)
 {
     _sharePointClient = sharePointClient;
     _tokenIssuer      = tokenIssuer;
     _options          = options.Value ?? throw new ArgumentNullException(nameof(HighTrustSharePointOptions));
 }
예제 #2
0
 public TokenIssuer(IOptions <HighTrustSharePointOptions> options)
 {
     _options = options.Value;
     _jwtSecurityTokenHandler = new JwtSecurityTokenHandler();
 }