Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ClassDef bases NameLoad AttributeLoad NameLoad attr NameLoad body Expr Str Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Return BinOpBitAnd Call NameLoad Str Str NameLoad Call NameLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr body Expr Str Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad BinOpBitAnd Call NameLoad Str Str SubscriptLoad AttributeLoad NameLoad attr Index Str Call NameLoad Str Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A 
Views related to personal access tokens. Intended for OSF internal use only
 rest_framework.exceptions APIException rest_framework generics rest_framework renderers rest_framework permissions drf_permissions modularodm Q framework.auth cas framework.auth.oauth_scopes CoreScopes api.base.filters ODMFilterMixin api.base.utils get_object_or_error api.base.views JSONAPIBaseView api.base permissions base_permissions api.tokens.serializers ApiOAuth2PersonalTokenSerializer website.models ApiOAuth2PersonalToken TokenList N/A JSONAPIBaseView N/A generics ListCreateAPIView ODMFilterMixin N/A N/A 
    Get a list of personal access tokens that the user has registered
     N/A permission_classes N/A N/A drf_permissions IsAuthenticated N/A base_permissions OwnerOnly N/A base_permissions TokenHasScope N/A required_read_scopes N/A N/A CoreScopes TOKENS_READ N/A required_write_scopes N/A N/A CoreScopes TOKENS_WRITE N/A serializer_class ApiOAuth2PersonalTokenSerializer N/A view_category tokens N/A view_name token-list N/A renderer_classes N/A N/A renderers JSONRenderer get_default_odm_query N/A N/A self N/A N/A N/A owner N/A N/A N/A self request user _id N/A N/A N/A Q owner eq owner N/A Q is_active eq True N/A get_queryset N/A N/A self N/A N/A N/A query N/A N/A self get_query_from_request N/A N/A N/A ApiOAuth2PersonalToken find query N/A perform_create N/A N/A self serializer N/A N/A N/A Add user to the created object N/A N/A N/A serializer validated_data N/A owner N/A N/A self request user N/A N/A N/A serializer save N/A N/A TokenDetail N/A JSONAPIBaseView N/A generics RetrieveUpdateDestroyAPIView N/A N/A 
    Get information about a specific personal access token that the user has registered

    Should not return information if the token belongs to a different user
     N/A permission_classes N/A N/A drf_permissions IsAuthenticated N/A base_permissions OwnerOnly N/A base_permissions TokenHasScope N/A required_read_scopes N/A N/A CoreScopes TOKENS_READ N/A required_write_scopes N/A N/A CoreScopes TOKENS_WRITE N/A serializer_class ApiOAuth2PersonalTokenSerializer N/A view_category tokens N/A view_name token-detail N/A renderer_classes N/A N/A renderers JSONRenderer get_object N/A N/A self N/A N/A N/A obj N/A get_object_or_error ApiOAuth2PersonalToken N/A N/A Q _id eq N/A N/A self kwargs N/A _id N/A Q is_active eq True N/A N/A N/A self check_object_permissions N/A self request obj N/A obj N/A perform_destroy N/A N/A self instance N/A N/A N/A Instance is not actually deleted from DB- just flagged as inactive, which hides it from views N/A obj N/A N/A self get_object N/A N/A N/A N/A N/A obj deactivate save True N/A N/A N/A N/A cas CasHTTPError N/A N/A N/A APIException Could not revoke tokens; please try again later N/A perform_update N/A N/A self serializer N/A N/A N/A Necessary to prevent owner field from being blanked on updates N/A N/A N/A serializer validated_data N/A owner N/A N/A self request user N/A N/A N/A serializer save owner N/A N/A self request user N/A N/A