-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FI-3643: Check input components for auth #587
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #587 +/- ##
=======================================
Coverage 84.29% 84.30%
=======================================
Files 275 275
Lines 11668 11686 +18
Branches 1302 1307 +5
=======================================
+ Hits 9836 9852 +16
- Misses 1822 1824 +2
Partials 10 10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
const [authType, setAuthType] = React.useState<string>( | ||
input.options?.components ? (input.options?.components[0].default as string) : 'public', | ||
authComponent?.default ? (authComponent.default as string) : 'public', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to check what the actual list options are and choose the first value in case public has been removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch -- updated
Summary
Bug fix for the following:
Current behavior: Auth inputs check first component provided for default selection settings. If another component is provided, inputs break.
Expected behavior: Inputs should find first component with type auth
See branch fi-3093-debug
Testing Guidance
Pull this branch into fi-3093-debug -- should be able to open inputs without errors. Check auth inputs, access inputs, and type selector; all should work.
Cases to check:
components
is empty and/or undefined -- AuthInfo Suitecomponents
has onlyauth_type
-- AuthInfo Suitecomponents
has only something else -- SMART STU1components
has something else andauth_type
-- add the following toInputAuth.tsx
on line 22:input.options?.components?.push({ name: 'auth_type', default: 'symmetric', });
Selector should show Confidential Symmetric.