Changed on:
24 Oct 2023
Setting Area | Workflow, Orders, UI component |
---|---|
Supported context levels: | ACCOUNT |
Previously, customers had an impact by an edge case in our authentication token expiry, which would occur when authentication expires while a batch job was in progress. The platform returns the HTTP response code of 500 instead of 401. This issue has now been fixed, and a 401 response code will return when the authentication token expires while running a batch job.
To ensure backward compatibility, we have implemented a setting to toggle between the correct (i.e. return 401 HTTP response code) and previous (i.e. return 500 HTTP response code) functionality. The setting details are mentioned in this document.
Data Type | Values |
---|---|
INTEGER | Possible value:
|
1POST {{fluentApiHost}}/graphql
2
3mutation CreateSetting {
4 createSetting(input: {
5 name: "fc.batch.auth.expiry.code",
6 valueType: "INTEGER",
7 value: 401,
8 context: "ACCOUNT",
9 contextId: 0}) {
10 id
11 name
12 }
13}
Language: graphqlschema
1POST {{fluentApiHost}}/graphql
2
3mutation updateSetting {
4 updateSetting(input: {
5 id: 5001464,
6 name: "fc.batch.auth.expiry.code",
7 valueType: "INTEGER",
8 value:500,
9 context: "ACCOUNT",
10 contextId: 0}) {
11 id
12 name
13 }
14}
15
Language: graphqlschema
Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.