RestrictTokenData

class RestrictTokenData[source]

The restrictions a caller may add to their own token.

Only fields that make a token strictly more restrictive are accepted. Access-granting fields such as verified_course_ids are absent by design, so entry to password- or lockdown-restricted content can never be self- granted through this route.

for_context: Just[SessionRestrictionContext] | _Nothing[SessionRestrictionContext] = Nothing

Narrow the session to a single course context.

removed_permissions: Just[RemovedPermissions] | _Nothing[RemovedPermissions] = Nothing

Course and tenant permissions to drop from this session.