Azure-Samples / active-directory-verifiable-credentials

A code sample demonstrating how to use Azure Active Directory's preview functionality to issue and consume verifiable credentials.
107 stars 65 forks source link

Error while scanning QR code #2

Closed only1sham closed 4 years ago

only1sham commented 4 years ago

When I scan the QR code from Microsoft Authenticator app, I see the following error - "Invalid activation barcode". Any inputs on how to resolve this would be appreciated.

Also, on a different note, is it possible to configure and run this solution locally without using Azure AD?

Regards, Sham

timcappalli commented 4 years ago

Please provide the decoded QR value.

Azure AD is not required. Any OIDC-compliant OP can be used.

only1sham commented 4 years ago

Here's the value for issue credential QR code - openid://vc/?request_uri=https%3A%2F%2Fbb41ae627b86.ngrok.io%2Fissue-request.jwt%3Fid%3DbTumSi2L4wCaFfkh2A3BHjSvWPyJBpSh

timcappalli commented 4 years ago

Is your issuer URL correct? I'm seeing: Tunnel bb41ae627b86.ngrok.io not found

Also, ensure you are using Microsoft Authenticator (Android) version 6.2007.5012 or greater?

only1sham commented 4 years ago

I'm actually setting the host variable with ngrok URL dynamically something like this. So, it keeps changing.

var server = app.listen(port, function () { ngrok.connect(port).then(ngrokUrl => { host = ngrokUrl }) });

I'm trying to scan QR code from iPhone. Is that an issue?

timcappalli commented 4 years ago

The preview is only available in the Android version of Authenticator.

only1sham commented 4 years ago

@timcappalli - Thank you for your time in responding to this query! That explains why I get that error on my phone.