コード例 #1
0
        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));
        }
コード例 #2
0
        public IAppUsuario Build()
        {
            if (contextJwt == null)
            {
                contextJwt = BuilderJwtContext.New().Build();
            }

            return(new AppUsuario(contextJwt));
        }
コード例 #3
0
        public IAppCadastrar Build()
        {
            if (jwtContext == null)
            {
                jwtContext = BuilderJwtContext.New()
                             .With(authUsers)
                             .Build();
            }

            return(new AppCadastrar(jwtContext));
        }