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)); }
public TokenIssuer(IOptions <HighTrustSharePointOptions> options) { _options = options.Value; _jwtSecurityTokenHandler = new JwtSecurityTokenHandler(); }