Skip to content

Commit

Permalink
Increase the min length of state param to 10 in OIDC integration (#661)
Browse files Browse the repository at this point in the history
Increase the min length of state param to 10
  • Loading branch information
vibhanshub authored Dec 17, 2024
1 parent 85b5d97 commit fedb093
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silver-clouds-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@gitbook/integration-oidc': patch
---

Increase the min length of state to 10 chars
2 changes: 1 addition & 1 deletion integrations/oidc/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export default createIntegration({
url.searchParams.append('response_type', 'code');
url.searchParams.append('redirect_uri', `${installationURL}/visitor-auth/response`);
url.searchParams.append('scope', scope.toLowerCase());
url.searchParams.append('state', `state-${location}`);
url.searchParams.append('state', `oidcstate-${location}`);

return Response.redirect(url.toString());
},
Expand Down

0 comments on commit fedb093

Please sign in to comment.