mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-10-06 19:59:42 +07:00
chore:dynamically change redirectUrl
This commit is contained in:
@@ -310,10 +310,12 @@ func OIDCLogin(c *gin.Context) {
|
||||
json := make(map[string]string)
|
||||
c.ShouldBind(&json)
|
||||
state := json["state"]
|
||||
callBackUrl := fmt.Sprintf("%s/%s", json["baseUrl"], "v1/users/oidc/callback")
|
||||
// w := c.Writer
|
||||
// r := c.Request
|
||||
// setCallbackCookie(w, r, "state", state)
|
||||
// c.Redirect(http.StatusFound, oauth2Config.AuthCodeURL(state))
|
||||
oauth2Config.RedirectURL = callBackUrl
|
||||
c.JSON(common_err.SUCCESS,
|
||||
model.Result{
|
||||
Success: common_err.SUCCESS,
|
||||
|
||||
Reference in New Issue
Block a user