Skip to content

Conversation

@sam-muncke
Copy link
Contributor

@sam-muncke sam-muncke commented Nov 18, 2025

Changes

This PR exposes 3 new methods corresponding to the connected account management endpoints of My Account API:

  • list_connected_account_connections: List the available connections that a user may use for connected accounts
  • list_connected_accounts: List the connected accounts a user already has
  • delete_connected_account: Delete a connected account

References

https://auth0team.atlassian.net/browse/FGI-1575

Testing

See included docs for testing instructions

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@sam-muncke sam-muncke marked this pull request as ready for review November 18, 2025 19:01
@sam-muncke sam-muncke requested a review from a team as a code owner November 18, 2025 19:01
@sam-muncke sam-muncke changed the title Fgi 1575 manage connected accounts feature:FGI-1575 Add ability to manage connected accounts Nov 18, 2025
@sam-muncke sam-muncke changed the title feature:FGI-1575 Add ability to manage connected accounts feature:FGI-1575 Add ability to manage a users connected accounts Nov 18, 2025
@kishore7snehil
Copy link
Contributor

@claude

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

Claude finished @kishore7snehil's task —— View job


Code Review Complete

Tasks

  • Read PR diff
  • Read changed files for context
  • Review code quality
  • Review security
  • Review performance
  • Provide overall assessment

Overall Assessment

❌ This PR has critical issues that must be fixed before merging, including incorrect return types, syntax errors in documentation examples, error handling vulnerabilities, and misleading error messages.


store_options= {"request": request, "response": response}
)
```

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add an Error handling Example Section here as I can see the whole document only talks about the happy path.

connection: str
access_type: str
scopes: list[str]
created_at: str
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would request you to restructure the current class structure related to ConnectedAccounts in this file to follow a functional flow. Something like this :

# BASE & SHARED
ConnectedAccountBase(BaseModel)

# ENTITIES (What exists)

ConnectedAccount(ConnectedAccountBase)
ConnectedAccountConnection(BaseModel)

# Connect Operations (How to connect)

ConnectAccountOptions(BaseModel)
ConnectAccountRequest(BaseModel)
ConnectParams(BaseModel)
ConnectAccountResponse(BaseModel)
CompleteConnectAccountRequest(BaseModel)
CompleteConnectAccountResponse(ConnectedAccountBase)  #Extends base

# Manage operations

ListConnectedAccountsResponse(BaseModel)
ListConnectedAccountConnectionsResponse(BaseModel)

self,
access_token: str,
connected_account_id: str
) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't see any docstrings for any of the functions in these files. Is there a specific reason not adding them?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants