public string CreateClientAuthJwt(PrivateKeyJwtOptions o) { _options.TokenEndpoint = o.TokenEndpoint ?? _options.TokenEndpoint; _options.ClientId = o.ClientId ?? _options.ClientId; _options.JwkKeyId = o.JwkKeyId ?? _options.JwkKeyId; _options.PrivateKeyPath = o.PrivateKeyPath ?? _options.PrivateKeyPath; _options.TokenLifeTimeInMinutes = o.TokenLifeTimeInMinutes; //default if not set or custom return(CreateClientAuthJwt()); }
public PrivateKeyJwtGenerator(ILogger <PrivateKeyJwtGenerator> logger, IOptions <PrivateKeyJwtOptions> options) { _logger = logger; _options = options.Value; }