Add frontend getOAuthCode() API.

This commit is contained in:
Yang Luo
2021-03-15 00:28:34 +08:00
parent 4e22e0523d
commit 2a481d6a2e
3 changed files with 19 additions and 3 deletions

View File

@ -71,9 +71,9 @@ func (c *ApiController) DeleteToken() {
func (c *ApiController) GetOAuthCode() {
userId := c.GetSessionUser()
clientId := c.Input().Get("client_id")
responseType := c.Input().Get("response_type")
redirectUri := c.Input().Get("redirect_uri")
clientId := c.Input().Get("clientId")
responseType := c.Input().Get("responseType")
redirectUri := c.Input().Get("redirectUri")
scope := c.Input().Get("scope")
state := c.Input().Get("state")