SealSkin

applications

Application listing and icons for authenticated users, and the pictures every page may load.

attributelogger
= logging.getLogger(__name__)
attributerouter
= APIRouter(route_class=EncryptedRoute)
attributepublic_router
= APIRouter()
funcuser_can_access(app_users, app_groups, username, groups) -> 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.

paramgroupslist[str] | str

The groups the user is in, or a single group name.

Returns

bool

True when the user, or one of their groups, 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]
funcget_logo(name, request) -> Response

Serve a picture a store, a remote, or a home link named, from this node's copy.

paramnamestr
paramrequestRequest

Returns

fastapi.Response