You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/workos/admin_portal/_resource.py
+56-58Lines changed: 56 additions & 58 deletions
Original file line number
Diff line number
Diff line change
@@ -30,35 +30,34 @@ def generate_link(
30
30
) ->PortalLinkResponse:
31
31
"""Generate a Portal Link
32
32
33
-
Generate a Portal Link scoped to an Organization.
34
-
35
-
Args:
36
-
return_url: The URL to go to when an admin clicks on your logo in the Admin Portal. If not specified, the return URL configured on the [Redirects](https://dashboard.workos.com/redirects) page will be used.
37
-
success_url: The URL to redirect the admin to when they finish setup. If not specified, the success URL configured on the [Redirects](https://dashboard.workos.com/redirects) page will be used.
38
-
organization: An [Organization](https://workos.com/docs/reference/organization) identifier.
39
-
intent:
40
-
The intent of the Admin Portal.
41
-
- `sso` - Launch Admin Portal for creating SSO connections
- `audit_logs` - Launch Admin Portal for viewing Audit Logs
44
-
- `log_streams` - Launch Admin Portal for creating Log Streams
45
-
- `domain_verification` - Launch Admin Portal for Domain Verification
46
-
- `certificate_renewal` - Launch Admin Portal for renewing SAML Certificates
47
-
- `bring_your_own_key` - Launch Admin Portal for configuring Bring Your Own Key
48
-
intent_options: Options to configure the Admin Portal based on the intent.
49
-
request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.
50
-
51
-
Returns:
52
-
PortalLinkResponse
53
-
54
-
Raises:
55
-
BadRequestError: If the request is malformed (400).
56
-
AuthorizationError: If the request is forbidden (403).
57
-
NotFoundError: If the resource is not found (404).
58
-
UnprocessableEntityError: If the request data is unprocessable (422).
59
-
AuthenticationError: If the API key is invalid (401).
60
-
RateLimitExceededError: If rate limited (429).
61
-
ServerError: If the server returns a 5xx error.
33
+
Generate a Portal Link scoped to an Organization.
34
+
35
+
Args:
36
+
return_url: The URL to go to when an admin clicks on your logo in the Admin Portal. If not specified, the return URL configured on the [Redirects](https://dashboard.workos.com/redirects) page will be used.
37
+
success_url: The URL to redirect the admin to when they finish setup. If not specified, the success URL configured on the [Redirects](https://dashboard.workos.com/redirects) page will be used.
38
+
organization: An [Organization](https://workos.com/docs/reference/organization) identifier.
39
+
intent: The intent of the Admin Portal.
40
+
- `sso` - Launch Admin Portal for creating SSO connections
- `audit_logs` - Launch Admin Portal for viewing Audit Logs
43
+
- `log_streams` - Launch Admin Portal for creating Log Streams
44
+
- `domain_verification` - Launch Admin Portal for Domain Verification
45
+
- `certificate_renewal` - Launch Admin Portal for renewing SAML Certificates
46
+
- `bring_your_own_key` - Launch Admin Portal for configuring Bring Your Own Key
47
+
intent_options: Options to configure the Admin Portal based on the intent.
48
+
request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.
49
+
50
+
Returns:
51
+
PortalLinkResponse
52
+
53
+
Raises:
54
+
BadRequestError: If the request is malformed (400).
55
+
AuthorizationError: If the request is forbidden (403).
56
+
NotFoundError: If the resource is not found (404).
57
+
UnprocessableEntityError: If the request data is unprocessable (422).
58
+
AuthenticationError: If the API key is invalid (401).
59
+
RateLimitExceededError: If rate limited (429).
60
+
ServerError: If the server returns a 5xx error.
62
61
"""
63
62
body: Dict[str, Any] = {
64
63
k: v
@@ -100,35 +99,34 @@ async def generate_link(
100
99
) ->PortalLinkResponse:
101
100
"""Generate a Portal Link
102
101
103
-
Generate a Portal Link scoped to an Organization.
104
-
105
-
Args:
106
-
return_url: The URL to go to when an admin clicks on your logo in the Admin Portal. If not specified, the return URL configured on the [Redirects](https://dashboard.workos.com/redirects) page will be used.
107
-
success_url: The URL to redirect the admin to when they finish setup. If not specified, the success URL configured on the [Redirects](https://dashboard.workos.com/redirects) page will be used.
108
-
organization: An [Organization](https://workos.com/docs/reference/organization) identifier.
109
-
intent:
110
-
The intent of the Admin Portal.
111
-
- `sso` - Launch Admin Portal for creating SSO connections
- `audit_logs` - Launch Admin Portal for viewing Audit Logs
114
-
- `log_streams` - Launch Admin Portal for creating Log Streams
115
-
- `domain_verification` - Launch Admin Portal for Domain Verification
116
-
- `certificate_renewal` - Launch Admin Portal for renewing SAML Certificates
117
-
- `bring_your_own_key` - Launch Admin Portal for configuring Bring Your Own Key
118
-
intent_options: Options to configure the Admin Portal based on the intent.
119
-
request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.
120
-
121
-
Returns:
122
-
PortalLinkResponse
123
-
124
-
Raises:
125
-
BadRequestError: If the request is malformed (400).
126
-
AuthorizationError: If the request is forbidden (403).
127
-
NotFoundError: If the resource is not found (404).
128
-
UnprocessableEntityError: If the request data is unprocessable (422).
129
-
AuthenticationError: If the API key is invalid (401).
130
-
RateLimitExceededError: If rate limited (429).
131
-
ServerError: If the server returns a 5xx error.
102
+
Generate a Portal Link scoped to an Organization.
103
+
104
+
Args:
105
+
return_url: The URL to go to when an admin clicks on your logo in the Admin Portal. If not specified, the return URL configured on the [Redirects](https://dashboard.workos.com/redirects) page will be used.
106
+
success_url: The URL to redirect the admin to when they finish setup. If not specified, the success URL configured on the [Redirects](https://dashboard.workos.com/redirects) page will be used.
107
+
organization: An [Organization](https://workos.com/docs/reference/organization) identifier.
108
+
intent: The intent of the Admin Portal.
109
+
- `sso` - Launch Admin Portal for creating SSO connections
0 commit comments