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
@@ -216,7 +216,14 @@ return RedirectResponse(redirect_url) # your framework performs the redire
216
216
217
217
> **NOTE**: An actor is mandatory - an STT is only issued when the Action set one. By default the SDK sources the actor from the logged-in agent's session ID token, refreshing it when expired. If the agent is not logged in (no usable session ID token and none can be refreshed), the call fails client-side with `ACTOR_UNAVAILABLE` before any network request.
218
218
219
-
> **NOTE**: To use your own actor token instead of the session, pass `actor_token` (and optionally `actor_token_type`, which defaults to the ID token URN). An explicit `actor_token` takes precedence and the session is not read at all. It must be an **unexpired, asymmetrically-signed JWT** (RS256 or PS256) - an Auth0 session ID token satisfies this; an HS256 or expired token is rejected by the server.
219
+
> **NOTE**: To use your own actor token instead of the session, pass `actor_token` (and optionally `actor_token_type`, which defaults to the ID token URN). An explicit `actor_token` takes precedence and the session is not read at all. When `actor_token_type` is the ID token URN (the default), Auth0 validates the token, so it must be:
220
+
>
221
+
> - Signed with RS256 or PS256 (HS256 is rejected, it uses a shared secret).
222
+
> - Unexpired, and carrying `sub`, `iss`, `exp`, and `iat`.
223
+
> - Issued to the same client making the exchange (its `aud` must be that client's ID).
224
+
> - Belonging to a user who still exists and is not blocked.
225
+
>
226
+
> An Auth0 ID token from the agent's own session on this client satisfies all of these. A token that fails any of them is rejected by the server.
220
227
>
221
228
> ```python
222
229
> result =await auth0.request_session_transfer_token(
@@ -229,15 +236,15 @@ return RedirectResponse(redirect_url) # your framework performs the redire
229
236
230
237
### Target: forward the STT to `/authorize`
231
238
232
-
On the target, the STT rides through your normal login. `start_interactive_login` forwards arbitrary authorization parameters to `/authorize`, so your login route just passes `session_transfer_token` (and`organization`, when the STT was issued in an org context) straight through:
239
+
On the target, the STT rides through your normal login. `start_interactive_login` forwards arbitrary authorization parameters to `/authorize`, so your login route just passes `session_transfer_token` (and`organization`, when you want the target login org-scoped) straight through:
233
240
234
241
```python
235
242
from auth0_server_python.auth_types import StartInteractiveLoginOptions
-`connection`: The connection for which an access token should be retrieved, e.g. `google-oauth2` for Google.
247
-
-`loginHint`: Optional login hint to inform which connection account to use, can be useful when multiple accounts for the connection exist for the same user.
247
+
-`login_hint`: Optional login hint to inform which connection account to use, can be useful when multiple accounts for the connection exist for the same user.
248
248
249
249
The SDK will cache the token internally, and return it from the cache when not expired. When no token is found in the cache, or the token is expired, calling `get_access_token_for_connection()` will call Auth0 to retrieve a new token and update the cache.
0 commit comments