Skip to content

Commit 33fcadc

Browse files
authored
Add domain_verification intent (#358)
1 parent eee7b99 commit 33fcadc

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

tests/test_portal.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ def test_generate_link_sso(self, mock_portal_link, mock_http_client_with_respons
2222

2323
assert response.link == "https://id.workos.com/portal/launch?secret=secret"
2424

25+
def test_generate_link_domain_verification(
26+
self, mock_portal_link, mock_http_client_with_response
27+
):
28+
mock_http_client_with_response(self.http_client, mock_portal_link, 201)
29+
30+
response = self.portal.generate_link(
31+
intent="domain_verification",
32+
organization_id="org_01EHQMYV6MBK39QC5PZXHY59C3",
33+
)
34+
35+
assert response.link == "https://id.workos.com/portal/launch?secret=secret"
36+
2537
def test_generate_link_dsync(
2638
self, mock_portal_link, capture_and_mock_http_client_request
2739
):

workos/types/portal/portal_link_intent.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22

33

44
PortalLinkIntent = Literal[
5-
"audit_logs", "certificate_renewal", "dsync", "log_streams", "sso"
5+
"audit_logs",
6+
"certificate_renewal",
7+
"domain_verification",
8+
"dsync",
9+
"log_streams",
10+
"sso",
611
]

0 commit comments

Comments
 (0)