Skip to content

Commit 571f83e

Browse files
committed
fix: request_expiry -> requested_expiry
BREAKING CHANGE: the ciba authorizer now accepts `requested_expiry` instead of `request_expiry`
1 parent 5252bac commit 571f83e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/auth0-ai/auth0_ai/authorizers/ciba/ciba_authorizer_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async def _get_authorize_params(self, *args: ToolInput.args, **kwargs: ToolInput
106106
authorize_params = {
107107
"scope": _ensure_openid_scope(self.params.get("scopes")),
108108
"audience": self.params.get("audience"),
109-
"request_expiry": self.params.get("request_expiry"),
109+
"requested_expiry": self.params.get("requested_expiry"),
110110
}
111111

112112
if isinstance(self.params.get("user_id"), str):

packages/auth0-ai/auth0_ai/authorizers/ciba/ciba_authorizer_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class CIBAAuthorizerParams(TypedDict, Generic[ToolInput]):
1515
authorization_details (Union[list[dict], Callable[..., list[dict]], Callable[..., Awaitable[list[dict]]]], optional):The authorization requirements list (e.g., [{ type: "custom_type", param: "example", ...}]), or a function that resolves it. More info: https://auth0.com/docs/get-started/authentication-and-authorization-flow/client-initiated-backchannel-authentication-flow/user-authorization-with-ciba
1616
store (Store, optional): An store used to temporarly store the authorization response data while the user is completing the authorization in another device (default: InMemoryStore).
1717
audience (str, optional): The audience to request authorization for.
18-
request_expiry (int, optional): The time in seconds for the authorization request to expire, pass a number between 1 and 300 (default: 300 seconds = 5 minutes).
18+
requested_expiry (int, optional): The time in seconds for the authorization request to expire, pass a number between 1 and 3600 (default: 300 seconds = 5 minutes).
1919
on_authorization_request (string, optional): The behavior when the authorization request is made. Expected values:
2020
- "interrupt" (default): The tool execution is interrupted until the user completes the authorization.
2121
- "block": The tool execution is blocked until the user completes the authorization. This mode is only useful for development purposes and should not be used in production.
@@ -43,6 +43,6 @@ class CIBAAuthorizerParams(TypedDict, Generic[ToolInput]):
4343
]]
4444
store: Optional[Store]
4545
audience: Optional[str]
46-
request_expiry: Optional[int]
46+
requested_expiry: Optional[int]
4747
on_authorization_request: Optional[Literal["block", "interrupt"]]
4848
credentials_context: Optional[AuthContext]

0 commit comments

Comments
 (0)