diff --git a/README.md b/README.md index 15ba619..7d4cfa3 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,7 @@ public void ConfigureServices(IServiceCollection services) { services .AddMvc() // Or AddControllers, or similar... - .AddApplicationPart(typeof(VanillaApiClient).GetTypeInfo().Assembly) // Add the controllers from this - .AddJsonOptions(o => - { - o.JsonSerializerOptions.PropertyNamingPolicy = null; - o.JsonSerializerOptions.IgnoreNullValues = true; - }); + .AddApplicationPart(typeof(VanillaApiClient).GetTypeInfo().Assembly); // Add the controllers from this services.AddSingleton(Configuration); services.AddTransient(h => SHA512.Create()); // Reflect the hashing algorithm set in Vanilla Forums @@ -35,7 +30,8 @@ public void ConfigureServices(IServiceCollection services) "ClientId": "your_client_id", "ClientSecret": "your_secret", "TimestampValidFor": "int_seconds", - "AllowWhitespaceInUsername": "bool" + "AllowWhitespaceInUsername": "bool", + "BaseUri": "http://your-vanilla-forum.com/" } ``` **4.** Make sure the `HttpContext.User` has the following claims set according to the [documentation](http://docs.vanillaforums.com/help/sso/jsconnect/seamless/): diff --git a/src/jsConnect/Controllers/JsConnectController.cs b/src/jsConnect/Controllers/JsConnectController.cs index 9c4c802..4c03363 100644 --- a/src/jsConnect/Controllers/JsConnectController.cs +++ b/src/jsConnect/Controllers/JsConnectController.cs @@ -74,6 +74,7 @@ public JsConnectController(IConfiguration configuration, ILogger [HttpGet("[action]")] [Produces("application/json")] + [ResponseCache(NoStore = true, Duration = 0)] public async Task AuthenticateAsync([FromQuery] string client_id, [FromQuery] string callback, [FromQuery] int? timestamp = null, [FromQuery] string signature = null) { JsConnectResponseModel jsConnectResult = new JsConnectResponseModel();