INNER CODE UNIT · Python

register_client

CassiopeiaCode/q2api · account-feeder/app.py:93

async def register_client() -> tuple[str, str]:
    """注册 OIDC 客户端"""
    payload = {
        "clientName": "Amazon Q Developer for command line",
        "clientType": "public",
        "scopes": [
            "codewhisperer:completions",
            "codewhisperer:analysis",
            "codewhisperer:conversations",
        ],
    }
    r = await post_json(REGISTER_URL, payload)
    r.raise_for_status()
    data = r.json()
    return data["clientId"], data["clientSecret"]


async def start_device_authorization(client_id: str, client_secret: str) -> Dict:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…