public AutoCareOAuthOptions(IPersonifyHelper personifyHelper)
        {
            TokenEndpointPath         = new PathString("/autocareoauth/token/");
            AccessTokenExpireTimeSpan = TimeSpan.FromMinutes(59);
            AccessTokenFormat         = new AutoCareJwtFormat(this);
            Provider = new AutoCareOAuthAuthorizationProvider(personifyHelper);
//#if DEBUG
            AllowInsecureHttp = true;
//#endif
        }
        public AutoCareJwtOptions(IPersonifyHelper personifyHelper, IUnityContainer container)
        {
            //AccessTokenFormat = container.Resolve<AutoCareJwtFormat>();

            var issuer   = "http://vcdbpoc-staging.azurewebsites.net";
            var audience = "all";
            var key      = Convert.FromBase64String("KJiuweUH2234Kkjk234234fgdfc56566");

            AuthenticationMode           = AuthenticationMode.Active;
            AuthenticationType           = "JWT";
            AllowedAudiences             = new[] { audience };
            IssuerSecurityTokenProviders = new[]
            {
                new SymmetricKeyIssuerSecurityTokenProvider(issuer, key)
            };
            Provider = new AutoCareOAuthAuthenticationProvider();
        }
Example #3
0
 public AutoCareOAuthAuthorizationProvider(IPersonifyHelper personifyHelper)
 {
     _personifyHelper = personifyHelper;
 }