SealSkin
Server Referencerouters

applications

Application listing and icons for authenticated users.

attributelogger
= logging.getLogger(__name__)
attributerouter
= APIRouter(route_class=EncryptedRoute)
funcuser_can_access(app_users, app_groups, username, group) -> bool

Tell whether a user may see an application.

paramapp_userslist[str]

Usernames allowed by the app ("all" allows everyone).

paramapp_groupslist[str]

Groups allowed by the app ("all" allows everyone).

paramusernamestr

The user.

paramgroupstr

The user's effective group.

Returns

bool

True when access is allowed.

funcget_applications(user=Depends(verify_token)) -> list[Application]

List the applications the calling user may launch.

paramuserdict[str, Any]
= Depends(verify_token)

Returns

list[app.models.Application]
funcget_app_icon(app_id, user=Depends(verify_token)) -> dict[str, str]

Return a custom-uploaded app icon as base64 inside JSON.

paramapp_idstr
paramuserdict[str, Any]
= Depends(verify_token)

Returns

dict[str, str]