You are not authorized to access the resource
Closed this issue · 5 comments
managed to get around this with npm install
Ran into the same exact issue. I'm running this in the docker container locally... How did you manage to resolve this?
managed to get around this with npm install
Where did you run npm install
? If running ./manage build
and ./manage start
as per instructions the docker build will perform that step, so it is really not required.
I think I figured out - npm install
is required to start it in the dev mode ./manage start-dev
Basically ./manage build
and ./manage start
is all we need to start it up in local mode. However, the workflow to issue a credential in Local mode is a little different than the dev mode. If you're trying to go to issuer-web directly (i.e., localhost:8082) you would see a permission error. Instead, I am assuming we want to do the below steps. (Authors @esune please feel free to correct me if I misstated anything.)
Steps to issue credentials in local mode:
-
Goto the issuer admin - http://localhost:8081
-
Login using the default creds - user -
issuer-admin
& pass -issuer-admin
-
Click on the "New Invite" button, fill the form and save
Note - You can provide any email address doesn't really matter as all emails get caught in the mailDev, which prevents the email from being sent to the actual email address.
-
(optional) - Go to mailDev - http://localhost:8050/ to view the invite link
Or alternatively, you can get the invite link from the issuer admin by editing the invite you just created. -
Once you click on the invite link it should take you to a test issuer - with a QR code. Which you can scan using the BC wallet.
(Hoping this helps the people who run into the same issue.)
@dinbtechit that is correct. Local mode is configured to require an invite in order to access issuer-web
, so you would have to follow the steps described above - dev mode may be configured to bypass this authorization in order to make development easier. All these settings can be tweaked by updating configurations appropriately, as described here: https://github.com/bcgov/issuer-kit/blob/main/docs/ConfiguringIssuerKit.md