Authorize server

Authorize Server User

get

Authorize a Cloud user to access a ZenML server.

This endpoint is called by workspace ZenML servers and possibly other authorized workspace-level services to validate that they have permissions to access a ZenML Pro workspace. This is also the endpoint called in the second phase of the workspace authorization flow for web clients.

Args: request: The HTTP request server_id: ZenML server ID auth_context: Authentication context workspace_manager: Workspace manager

Returns: The currently authenticated user.

Raises: IllegalOperationError: If a workspace authorization token is used that was not issued for the given workspace.

Authorizations
OAuth2clientCredentialsRequired
Token URL: Refresh URL:

OAuth2authorizationCodeRequired
Authorization URL: Token URL: Refresh URL:
Query parameters
server_idstring · uuidRequired
Responses
200

Successful Response

application/json
get
/users/authorize_server
GET /users/authorize_server?server_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: 
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "password": "text",
  "password_expired": true,
  "name": "text",
  "avatar_url": "text",
  "company": "text",
  "job_title": "text",
  "metadata": {},
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "username": "text",
  "email": "text",
  "oauth_provider": "text",
  "oauth_id": "text",
  "is_active": true,
  "is_superuser": false,
  "is_service_account": false,
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "is_onboarded": false
}

Last updated

Was this helpful?