Skip to content
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

Ability to Reject an authentication request instead of ignoring it #1453

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

Tbaut
Copy link
Contributor

@Tbaut Tbaut commented Aug 30, 2024

closes #1431

This is not prefect, but it's a step in the right direction I believe.
When a user closes the authentication popup, nothing changes, the request is still here, it is still available in the extension on click. The icon also still shows that there's a pending "Auth" request. I don't think we've got any listener to act upon interaction with the popup, so I didn't mess with this.

Users however can now reject an authentication request. The Dapps will receive a "Reject" and no account will be shared. On the extension side, the connection will be made with 0 accounts and the Dapp that has called web3Enable, and it will resolve with 0 accounts.

@Tbaut
Copy link
Contributor Author

Tbaut commented Aug 30, 2024

@nikitayutanov please let me know if this helps

@Tbaut Tbaut changed the title Reject instead of ignore Ability to Reject an authentication request instead of ignoring it Aug 30, 2024
@Tbaut Tbaut requested a review from TarikGul August 30, 2024 10:47
@TarikGul TarikGul self-assigned this Sep 3, 2024
Copy link
Member

@TarikGul TarikGul left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@TarikGul TarikGul merged commit fd94590 into master Sep 5, 2024
4 checks passed
@TarikGul TarikGul deleted the tbaut-reject-auth branch September 5, 2024 12:32
@polkadot-js-bot
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No way to determine whether web3Enable was fired or not in case of rejected authorization
3 participants