question

JasonCheung-8985 avatar image
0 Votes"
JasonCheung-8985 asked mahoekst answered

Can't run the active-directory-verifiable-credentials sample app on cloud without ngrok

Hi, I tried to run the sample app (both issuer and verifier) on my cloud Ubuntu instance (http://mydomain). I can access the Issuance and Verification page through http://mydomain:8081 and http://mydomain:8082 respectively (both Issuance and Verification are run in Docker container).

However, I can never get through to the "Sign In" screen in Authenticator after scanning the QR code for Issuance. I have to start "ngrok" to make it work. What do I need to do in order to make it work on my cloud Ubuntu instance without using "ngrok"?

Thanks for the help.

Cheers,
Jason

azure-ad-verifiable-credentials
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

mahoekst avatar image
0 Votes"
mahoekst answered

Authenticator needs to be able to communicate securely with your service. It doesn't know how to connect to http://mydomain:8081 hence the recommendation to use NGROK so authenticator can download the issuance or presentation request once scanning the QR code (the QR code is nothing more than a URI where authenticator can download a signed JWT)

If you want to make this work, there needs to be a way for authenticator to reach your service over SSL, if you use self-signed certs, you need to make sure your phone trusts those so you won't get any warnings. The easiest way to test is access the website through the mobile browser on the phone. If that works over SSL you will see the authenticator piece work as well.

The sign-in is a different endpoint. The sample points to a B2C IDP to signup and signin users. Authenticator needs access to the internet to be able to make that work, this is not going through ngrok.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.