asgardeo / asgardeo-auth-react-sdk

To maintain the implementation of Asgardeo React authentication SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Params passed to the Authorize request are getting moderated by the SDK.

brionmario opened this issue · comments

Describe the issue:

The following set of params are passed into the signIn hook.

const authParams = {};

authParams["fidp"] = "OrganizationSSO";
authParams["orgId"] = getOrganizationName();

await signIn(authParams);

And the SDK transforms the keys in to Snake Case which causes issues.

Screenshot 2023-12-20 at 17 10 36

This change seems to have been introduced with https://github.com/asgardeo/asgardeo-auth-js-core/pull/203/files#diff-f34c1fc70c8dfe6982556af3ab69b70a42b7a68c9119cfa0bfa4716acd929750R120.

How to reproduce:

  • Pass the above set of custom params to the signIn hook.

Expected behavior:

  • SDK should not transform the keys.

Environment information (Please complete the following information; remove any unnecessary fields) :

  • Product Version: IS 7.0 BETA 4
  • OS: Mac
  • Database: H2
  • Userstore: LDAP

Fixed in @asgardeo/auth-js and propagated to @asgardeo/auth-spa & @asgardeo/auth-react.