Class ServiceExtensions
Namespace: GatewayOrchestrator.Extensions
Assembly: GatewayOrchestrator.dll
public static class ServiceExtensions
Inheritance
object ← ServiceExtensions
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.MemberwiseClone\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Methods
AddCustomCors\(IServiceCollection, IConfiguration\)
public static void AddCustomCors(this IServiceCollection services, IConfiguration configuration)
Parameters
services IServiceCollection
configuration IConfiguration
ConfigureJwtAuthentication\(IServiceCollection, IConfiguration\)
Method that configure JWT authentication.
public static void ConfigureJwtAuthentication(this IServiceCollection services, IConfiguration configuration)
Parameters
services IServiceCollection
Services from the app service collection.
configuration IConfiguration
Configuration of the app.
UseGlobalJwtValidator\(IApplicationBuilder\)
Method that enable middleware that will globally validate any JWT entering the system.
public static void UseGlobalJwtValidator(this IApplicationBuilder builder)
Parameters
builder IApplicationBuilder
Last modified: 21 May 2024