Replies: 5 comments 11 replies
-
Hi Josh, What you want to implement seams to be the behavior of the Bitwarden extension: On browser opening the user unlock the extension with a pwd, then the extension remains unlock during the session and is locked on demand or on session ending. Is that right? |
Beta Was this translation helpful? Give feedback.
-
I think Authorization Code grant of OAuth2 is what you expect: https://oauth2.thephpleague.com/authorization-server/auth-code-grant/ (according to the decision tree available here https://oauth2.thephpleague.com/authorization-server/which-grant/) 2FAuth uses the Laravel Passport package so enabling this OAuth flow is quite easy, I will work on it. |
Beta Was this translation helpful? Give feedback.
-
I've just checked and the Password Grant is already available via oauth/token thanks to the |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I have moved the extension out of alpha and published it to the Chrome Extension store and Mozilla Add-On store under the name For now it's using the OAuth token method for access. |
Beta Was this translation helpful? Give feedback.
-
I've been puting together a Chrome/Firefox extension to make desktop access easier/faster (https://github.com/josh-gaby/2fauth-browser-extension).
I currently have it setup to encrypt and store the personal access token using a locally set password which works okay, but it would be a lot nicer if you were able to use your 2fauth password to for access rather than one specific to the extension.
With the current process of generating a token on the hosted app and sending it with all requests from the extension, I can't think of any simple mechanism that would allow the users password to be confirmed.
My first thought was a new auth endpoint to confirm a users password but because the token is encrypted by the extension while it's locked, it cant be used to authorize the api call that would be required to validate the unlock request.
Any thoughts on a simple mechanism that could be implemented in the API that would allow for this or is a seperate password for the extensions not an issue worth worrying about?
Beta Was this translation helpful? Give feedback.
All reactions