[COS] oAuth integration for html frontend