mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
feat(hostWhitelist): allow comfy.org hosts to authenticate (#5952)
## Summary Add `comfy.org` host names to the list of hosts that can authenticate via SSO. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5952-feat-hostWhitelist-allow-comfy-org-hosts-to-authenticate-2846d73d36508152a41af92ada2a698b) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -119,5 +119,27 @@ describe('hostWhitelist utils', () => {
|
||||
expect(isHostWhitelisted(' ')).toBe(false)
|
||||
})
|
||||
})
|
||||
|
||||
describe('comfy.org hosts', () => {
|
||||
it.each([
|
||||
'staging.comfy.org',
|
||||
'stagingcloud.comfy.org',
|
||||
'pr-123.testingcloud.comfy.org',
|
||||
'api.v2.staging.comfy.org'
|
||||
])('should allow %o', (input) => {
|
||||
expect(isHostWhitelisted(input)).toBe(true)
|
||||
})
|
||||
|
||||
it.each([
|
||||
'comfy.org.evil.com',
|
||||
'evil-comfy.org',
|
||||
'comfy.organization',
|
||||
'notcomfy.org',
|
||||
'comfy.org.hacker.net',
|
||||
'mycomfy.org.example.com'
|
||||
])('should NOT allow %o', (input) => {
|
||||
expect(isHostWhitelisted(input)).toBe(false)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user