Skip to content

API Reference parrot.auth.oauth2.authorization

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.auth.oauth2.authorization

View source

Request-independent authorization for connection operations (FEAT-777 M2).

Core declares the contract; the server injects a navigator-auth PDP adapter.

Class ConnectionAuthorizer

Decide whether a principal may perform a connection action without HTTP.

Method ConnectionAuthorizer.authorize

Return True only for an explicit allow decision.

authorize(principal: Principal, action: str, provider_id: Optional[str], scopes: List[str]) -> bool

Parameter Type Default Description
principal Principal Resolved platform principal.
action str Integration action being authorized.
provider_id Optional[str] Provider id, or None for collection operations.
scopes List[str] Effective requested scopes.

Returns: bool

Alias Principal

Re-exported from parrot.auth.principal.Principal.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally