Skip to content

Commit

Permalink
Fix/mask auth passwords (#8110)
Browse files Browse the repository at this point in the history
* Add mask property to sensitive authentication fields

* Removed whitespace
  • Loading branch information
Mjongeling07 authored Oct 24, 2024
1 parent 7a67255 commit 327f16e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const AWSAuth: FC = () => (
<AuthInputRow
label="Secret Access Key"
property="secretAccessKey"
mask={true}
/>
<AuthInputRow
label="Region"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const BasicAuth: FC<{ disabled?: boolean }> = ({ disabled = false }) => (
<AuthTableBody>
<AuthToggleRow label="Enabled" property="disabled" invert disabled={disabled} />
<AuthInputRow label="Username" property="username" disabled={disabled} />
<AuthInputRow label="Password" property="password" disabled={disabled} />
<AuthInputRow label="Password" property="password" mask disabled={disabled} />
<AuthToggleRow
label="Use ISO 8859-1"
help="Check this to use ISO-8859-1 encoding instead of default UTF-8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { AuthToggleRow } from './components/auth-toggle-row';
export const BearerAuth: FC<{ disabled?: boolean }> = ({ disabled = false }) => (
<AuthTableBody>
<AuthToggleRow label="Enabled" property="disabled" invert disabled={disabled} />
<AuthInputRow label='Token' property='token' disabled={disabled} />
<AuthInputRow label='Token' property='token' mask disabled={disabled} />
<AuthInputRow label='Prefix' property='prefix' disabled={disabled} />
</AuthTableBody>
);
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const HawkAuth: FC = () => (
<AuthTableBody>
<AuthToggleRow label="Enabled" property="disabled" invert />
<AuthInputRow label='Auth Id' property='id' />
<AuthInputRow label='Auth Key' property='key' />
<AuthInputRow label='Auth Key' property='key' mask />
<AuthSelectRow
label='Algorithm'
property='algorithm'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export const OAuth1Auth: FC = () => {
<AuthTableBody>
<AuthToggleRow label="Enabled" property="disabled" invert />
<AuthInputRow label='Consumer Key' property='consumerKey' />
<AuthInputRow label='Consumer Secret' property='consumerSecret' />
<AuthInputRow label='Consumer Secret' property='consumerSecret' mask />
<AuthInputRow label='Token Key' property='tokenKey' />
<AuthInputRow label='Token Secret' property='tokenSecret' />
<AuthInputRow label='Token Secret' property='tokenSecret' mask />
<AuthSelectRow label='Signature Method' property='signatureMethod' options={signatureMethodOptions} />
{signatureMethod === SIGNATURE_METHOD_RSA_SHA1 && <AuthPrivateKeyRow label='Private Key' property='privateKey' />}
<AuthInputRow label='Callback URL' property='callback' />
Expand Down

0 comments on commit 327f16e

Please sign in to comment.