feat: allow CORS for UserInfo API in OIDC (#2313)

This commit is contained in:
Yaodong Yu
2023-09-13 18:11:13 +08:00
committed by GitHub
parent 08a0092974
commit a12ba7fb85
2 changed files with 8 additions and 1 deletions

View File

@ -156,7 +156,7 @@ func (c *ApiController) DeleteToken() {
// @Success 200 {object} object.TokenWrapper The Response object
// @Success 400 {object} object.TokenError The Response object
// @Success 401 {object} object.TokenError The Response object
// @router /login/oauth/access_token [post]
// @router api/login/oauth/access_token [post]
func (c *ApiController) GetOAuthToken() {
grantType := c.Input().Get("grant_type")
refreshToken := c.Input().Get("refresh_token")