Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tests/Consistency.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1862,7 +1862,7 @@ Describe 'Private helpers (via module scope)' {
}

It 'Rejects an expired key even though it uses the Inforcer 403 envelope' {
# Verbatim body from api-uk.dev with an expired key. errorCode is 'forbidden' —
# Verbatim body from a live environment with an expired key. errorCode is 'forbidden' —
# identical to a scope denial — so only errors[] distinguishes the two.
# Must NOT report Connected.
Mock -ModuleName InforcerCommunity Invoke-WebRequest {
Expand Down
2 changes: 1 addition & 1 deletion module/Public/Connect-Inforcer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ if ($probeStatusCode -ge 200 -and $probeStatusCode -lt 300) {
}

# An expired / revoked / disabled key comes back in the SAME Inforcer app envelope as a
# scope denial — measured against api-uk.dev with an expired key, right down to
# scope denial — measured against a live environment with an expired key, right down to
# errorCode 'forbidden', which a scope denial also returns:
#
# 403 {"data":null,"errorCode":"forbidden","success":false,
Expand Down