Skip to content

Summarize granted scopes after cf auth login #34

Open

Description

@petebacondarwin

Problem

After a successful OAuth login, cf auth login prints every granted scope as one long comma-separated line. The default scope set is large, making the output difficult to scan.

Proposed behavior

Show a short summary after login, for example:

Signed in as [email protected]
Access granted to 34 products
Run `cf auth whoami --scopes` to view permissions.

The detailed view should group scopes by product, make write or sensitive permissions clear, and preserve the full raw scope list in structured output.

Acceptance criteria

  • Default login no longer prints the full scope list inline.
  • Users can still inspect every granted scope.
  • Custom scopes are clearly distinguished from defaults.
  • Output is readable on light and dark terminal themes.

Activity

  1. added
    enhancement
    priority: p2
    on Sep 29, 2026
  2. joshjkns commented on Oct 20, 2026

    @joshjkns
    Contributor

    Hi Pete,

    Was wondering if this is still an issue? I have made a fix for this:

    cf auth login now returns this:

    Successfully logged in.
    Config file: /Users/josh/Library/Preferences/cloudflare/config/default.json
    Scopes: 475 across 13 products
    → Run cf auth scopes to view permissions.
    Token expires: 20/10/2026, 18:47:07
    

    cf auth whoami stays as is to keep existing use cases unchanged.

    Edit:
    cf auth scopes is added as a new command.

    cf auth scopes returns a summary of products and the number of scopes attached:

    Image

    cf auth scopes [TERM] returns only the scopes of those products which contain words which begin with TERM:

    Image

    cf auth scopes --all returns all scopes, grouped by product:

    Image

    cf auth scopes --filter [TERM] searches the scopes based on the term across all products.

    Image

    For now, I had to match the products/grouping of the login portal page when you do cf auth login as I couldn't find an official place where they are all mapped. If there is one then I could map to that instead.

    Also works well on both light and dark (uses existing colours)

    Let me know if this issue is still something you want to fix 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority: p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions