public IAppAuthenticate Build() { SigningConfigurations signingConfigurations = new SigningConfigurations("123"); TokenConfigurations tokenConfigurations = new TokenConfigurations(); ContextJwt contextJwt = BuilderJwtContext.New().With(authUsers).Build(); return(new AppAuthenticate(signingConfigurations, tokenConfigurations, contextJwt)); }
public IAppUsuario Build() { if (contextJwt == null) { contextJwt = BuilderJwtContext.New().Build(); } return(new AppUsuario(contextJwt)); }
public IAppCadastrar Build() { if (jwtContext == null) { jwtContext = BuilderJwtContext.New() .With(authUsers) .Build(); } return(new AppCadastrar(jwtContext)); }