File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,9 @@ export default function Root({
5959 useEffect ( ( ) => {
6060 if ( token ) {
6161 let redirectURL = config . redirectURL || '/app' ;
62- let params = `access_token=${ token . access_token } &id_token=${ token . id_token } &expires_in=${ token . expires_in } &state=${ globalState . state } ` ;
62+ // let params = `access_token=${token.access_token}&id_token=${token.id_token}&expires_in=${token.expires_in}&state=${globalState.state}`;
63+ // Note: If OIDC breaks in the future, use the above params
64+ let params = `state=${ globalState . state } ` ;
6365
6466 if ( code !== '' ) {
6567 params += `&code=${ code } ` ;
Original file line number Diff line number Diff line change 77 "fmt"
88 "io"
99 "net/http"
10- "strconv"
1110 "strings"
1211 "time"
1312
@@ -248,8 +247,9 @@ func OAuthCallbackHandler() gin.HandlerFunc {
248247 expiresIn = 1
249248 }
250249
251- params := "access_token=" + authToken .AccessToken .Token + "&token_type=bearer&expires_in=" + strconv .FormatInt (expiresIn , 10 ) + "&state=" + stateValue + "&id_token=" + authToken .IDToken .Token + "&nonce=" + nonce
252-
250+ // params := "access_token=" + authToken.AccessToken.Token + "&token_type=bearer&expires_in=" + strconv.FormatInt(expiresIn, 10) + "&state=" + stateValue + "&id_token=" + authToken.IDToken.Token + "&nonce=" + nonce
251+ // Note: If OIDC breaks in the future, use the above params
252+ params := "state=" + stateValue + "&nonce=" + nonce
253253 if code != "" {
254254 params += "&code=" + code
255255 }
You can’t perform that action at this time.
0 commit comments