---
# System prepended metadata

title: Auth Gateway

---

# Auth Gateway

## Development environment setting
* Login page: 
Two Way
1. Use GNOP [QA enviroment](https://gnop-qa.gogoroapp.com/login)
    Use account information login GNOP QA ENV
    account: jie.jiang@gogoro.com
    password: Temp4321

    Update cookie information via browser (1) key name same as GOAUTH_SESSION_KEY in ENV (2) domain same as GOAUTH_SESSION_DOMAIN in ENV

2. dev server, 配合 postman
``` bash
node .dev-server/index.js # Login dev Server run in port 3000
```

* Local HOST setting： https://stackoverflow.com/questions/19016553/add-subdomain-to-localhost-url
    login page host: gnop.gogoro.com
    auth gateway host: guavared.gonp.gogoro.com

## Requirements
### Server ENVs
* File
* Check ENV middleware

### Modules
* Session NPM: express-session
* Proxy NPM: http-proxy-middleware
* goAuth gogoro module: 
* logger gogoro utils: gogoroUtils(補上 Repo)


## Authencation
### Guavared user role
* GOAUTH_ALLOWED_ROLE