Skip to content

API Reference parrot.auth.oauth2.paste

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

parrot.auth.oauth2.paste

View source

Parse a pasted OAuth redirect URL (moved from parrot_tools/jira_cli.py, FEAT-774 M6).

Function parse_pasted_redirect

Extract (code, state|None) from a pasted redirect URL or bare code.

parse_pasted_redirect(text: str) -> Tuple[str, Optional[str]]

Parameter Type Default Description
text str The pasted redirect URL, or a bare authorization code.

Returns: Tuple[str, Optional[str]] — A tuple of the authorization code and the state parameter (None for a bare code or a URL without state).

Raises:

  • click.ClickException — If the redirect carries error= or no code.

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