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"; }); }
public MarketPlace(IApiResources api) { Api = api; api.BaseURI = "/marketplace"; }
public FinancialTransaction(IApiResources api) { Api = api; Api.BaseURI = "/financial_transaction_requests"; }
public Reports(IApiResources api) { Api = api; }
public Account(IApiResources api) { Api = api; api.BaseURI = "/accounts"; }