Custom Params passed to the Authorize request are getting moderated by the SDK.
brionmario opened this issue · comments
Brion Mario commented
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.
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
Brion Mario commented
Fixed in @asgardeo/auth-js
and propagated to @asgardeo/auth-spa
& @asgardeo/auth-react
.
- @asgardeo/auth-js: asgardeo/asgardeo-auth-js-core#249
- @asgardeo/auth-spa: asgardeo/asgardeo-auth-spa-sdk#161
- @asgardeo/auth-react: #209