-
Notifications
You must be signed in to change notification settings - Fork 0
feature:FGI-1575 Add ability to manage a users connected accounts #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Claude finished @kishore7snehil's task —— View job Code Review CompleteTasks
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} | ||
| ) | ||
| ``` | ||
|
|
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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?
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 accountslist_connected_accounts: List the connected accounts a user already hasdelete_connected_account: Delete a connected accountReferences
https://auth0team.atlassian.net/browse/FGI-1575
Testing
See included docs for testing instructions
Checklist