This is a tool for exchanging a token for IAM access token. It's originally forked from github.com/BNPrashanth/poc-go-oauth2.
To learn more about Ops Portal Plugin, please read Ops Portal Introduction.
- Copy config.example and rename it to config.yml.
- In the IAM section, change
hmacKey
to a valid hmacKey. - If you want to authenticate to production, then change
authUrl
to https://iam.dh-auth.io/api/v1/oauth2/token.
- Request access to the application in
appID
with this here. - Running poc-oauth. It will start an HTTP server on port 9090.
- Clone https://github.com/TitleBhoomtawath/google-oauth-react to be used as a GUI tool.
- Running a google-oauth-react with
npm start
command. This will open a web page on localhost:3000. - On localhost:3000, login with your Foodpanda/Delivery account.
- You should get your access token to be used to authenticate against an Ops-Portal Plugin.
If you can't login with your Google account, please check that your account has permissions to the appID
.
It's set to ops-portal-pd-corporate-api
by default.