Skip to content

TitleBhoomtawath/poc-oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POC-GO-OAUTH2

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.

Instruction

Dependencies

Config

  1. Copy config.example and rename it to config.yml.
  2. In the IAM section, change hmacKey to a valid hmacKey.
  3. If you want to authenticate to production, then change authUrl to https://iam.dh-auth.io/api/v1/oauth2/token.

Usage

  1. Request access to the application in appID with this here.
  2. Running poc-oauth. It will start an HTTP server on port 9090.
  3. Clone https://github.com/TitleBhoomtawath/google-oauth-react to be used as a GUI tool.
  4. Running a google-oauth-react with npm start command. This will open a web page on localhost:3000.
  5. On localhost:3000, login with your Foodpanda/Delivery account.
  6. You should get your access token to be used to authenticate against an Ops-Portal Plugin.

Troubleshooting

Get 403 when logging with Google

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages