Issue signing in with Blockstack through a chrome extension

#1

I’m trying to create a chrome extension using Reactjs that uses Blockstack to sign into the extension. However, I cant seem to login when I press the sign in button. Instead of redirecting to blockstack browser, nothing happens. I’m using userSession.redirectToSignIn() to handle the login process.

I get the following message on the console.
> [INFO] blockstack.js: generating v1.3.1 auth request
> index_bundle.js:7577 [INFO] Attempting protocol launch via iframe injection.
> index_bundle.js:7577 [INFO] Protocol handler not detected.
> index_bundle.js:7572 [WARN] protocol handler not detected

I’m using blockstack.js version 19.1.0.

#2

Sorry for the delay here, @arunpdl013.

I asked internally and @zone117x informed me that a standalone web extension environment is not supported yet within our system.

He says an app domain needs to be setup and the web extension could interact with the webpage during the auth flow.

See https://github.com/blockstack/blockstack.js/issues/615

1 Like
#3

Thanks for the response, @markmhendrickson.
I have incorporated iframe into the extension to load the webpage until a better solution comes up. Hope a new authentication approach that supports web extensions gets implemented soon.

1 Like