Esempio n. 1
0
 public static void AddAccessTokenValidationServiceConfiguration(this IServiceCollection services, IApiResources apiResources)
 {
     services.AddAuthentication(options =>
     {
         options.DefaultAuthenticateScheme = IdentityServerAuthenticationDefaults.AuthenticationScheme;
         options.DefaultChallengeScheme    = JwtBearerDefaults.AuthenticationScheme;
     })
     .AddIdentityServerAuthentication(options =>
     {
         options.Authority            = apiResources.Authority;
         options.RequireHttpsMetadata = false;
         options.EnableCaching        = false;
         options.ApiName         = apiResources.ApiName;
         options.ApiSecret       = apiResources.ApiSecret;
         options.SupportedTokens = SupportedTokens.Reference;
         options.NameClaimType   = "name";
         options.RoleClaimType   = "role";
     });
 }
Esempio n. 2
0
 public MarketPlace(IApiResources api)
 {
     Api         = api;
     api.BaseURI = "/marketplace";
 }
Esempio n. 3
0
 public FinancialTransaction(IApiResources api)
 {
     Api         = api;
     Api.BaseURI = "/financial_transaction_requests";
 }
Esempio n. 4
0
 public Reports(IApiResources api)
 {
     Api = api;
 }
Esempio n. 5
0
 public Account(IApiResources api)
 {
     Api         = api;
     api.BaseURI = "/accounts";
 }