You need a test portal because your developer portal doesn’t have access to the scopes you’re requesting, but you still need to use the client id and client secret from the app in your developer portal. The only thing that should change is that when you reach the account selection screen, you should select your test portal.
The portal with Hub ID 4056224 is a developer portal, which doesn’t have access to the contacts scope. You’ll want to select a test portal or a production Marketing/CRM portal to install the app in instead:
Oauth 2: getting do not have the correct role to grant these permissions. + error
Creating the test portal, gives only API key in the integrations section. I am looking for oauth2 for which i require key and secret both. How do i get that.