# 权限验证

分为两部分：

1. 登录：Google OAuth2
2. 鉴权：JWT

## Google OAuth2 登录

![登录流程](images/auth_flow.png)

### 服务端

提供1个接口：

1. 上图第7步的验证接口：`api/v1/users/login/google-auth`

### UI

TODO(gaozifeng)

## 参考

[1]. <https://developers.google.com/identity/protocols/oauth2/web-server>

[2]. <https://developers.google.com/youtube/v3/quickstart/go>
