the last commit before starting upgrade it into OAuth2.

Signed-off-by: Ray Allen <ray@ray-Lenovo-IdeaPad-S400.(none)>