Esempio n. 1
0
        public JwtAuthProviderRsa256ReaderTests()
        {
            privateKey    = RsaUtils.CreatePrivateKeyParams(RsaKeyLengths.Bit2048);
            publicKey     = privateKey.ToPublicRsaParameters();
            privateKeyXml = privateKey.ToPrivateKeyXml();
            publicKeyXml  = privateKey.ToPublicKeyXml();

            appHost = new AppHost
            {
                JwtAuthProviderReader = CreateJwtAuthProviderReader()
            }
            .Init()
            .Start(Config.ListeningOn);
        }