Closed ChristianTremblay closed 4 years ago
For now, login works on Niagara 4.9 without changing anything to our implementation.
This is good news
<GetGridOperation done: <Grid>
Version: 2.0
Columns:
productUri
tz
moduleName
serverName
productName
haystackVersion
productVersion
moduleVersion
serverTime
moduleUri
serverBootTime
Row 0:
productUri=Uri('http://www.tridium.com/')
tz='New_York'
moduleName='nhaystack'
serverName='PythonInTheBuilding'
productName='Niagara 4'
haystackVersion='2.0'
productVersion='4.9.0.198'
moduleVersion='3.0.3'
serverTime=datetime.datetime(2020, 9, 29, 0, 5, 41, 509000, tzinfo=<DstTzInfo 'America/New_York' EDT-1 day, 20:00:00 DST>)
moduleUri=Uri('https://bitbucket.org/richiemac_77/nhaystack')
serverBootTime=datetime.datetime(2020, 9, 28, 23, 55, 55, 970000, tzinfo=<DstTzInfo 'America/New_York' EDT-1 day, 20:00:00 DST>)
</Grid>>
We'll reopen if troubles shows up. Related to this post : https://github.com/ci-richard-mcelhinney/nhaystack/issues/3
Ref : Breaking change: HTTP SCRAM Authentication Session Cookie
I don't have 4.9 yet to make any test, here is what article tells... with Java code extract
DESCRIPTION
Summary
Prior to Niagara 4.9, the HTTP SCRAM authentication client reference implementation AuthClientExample.java made the assumption that the session ID cookie would be set in the first Set-Cookie response header. This assumption was unsafe, and due to changes to the web server in Niagara 4.9, the session ID cookie will no longer be set in the first Set-Cookie response header. Any HTTP SCRAM authentication client implementations based on the AuthClientExample reference implementation must be updated to account for differing ordering of Set-Cookie headers to properly capture the session ID cookie.
Remediation
HTTP SCRAM authentication client implementations based on the AuthClientExample reference implementation should have a section of code similar to this section from the reference implementation:
This section of code should be updated to match the new reference implementation to account for multiple Set-Cookie headers:
@sjlongland For your info