Ejemplo n.º 1
0
 private void SetUp(TokenOptions configuration, IWoffuToken woffuToken, IWoffuServices woffuServices)
 {
     _configuration = configuration;
     _woffuToken    = woffuToken;
     _woffuServices = woffuServices;
     _user          = configuration.User;
     _password      = configuration.Password;
     _token         = _woffuToken.GetToken(_user, _password);
     _jwtToken      = JsonConvert.DeserializeObject <JwtModel>(_token);
     _bearer        = _woffuToken.GetTokenToString(JsonConvert.DeserializeObject <JwtModel>(_token));
 }
Ejemplo n.º 2
0
 public SignFunctions(IOptions <TokenOptions> configuration, IWoffuToken woffuToken, IWoffuServices woffuServices)
 {
     SetUp(configuration.Value, woffuToken, woffuServices);
 }