mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 10:39:30 +00:00 
			
		
		
		
	UI : Make AuthMechanism Fields to readOnly from NonEditable (#8143)
This commit is contained in:
		
							parent
							
								
									491ece4d72
								
							
						
					
					
						commit
						78712a1fa3
					
				| @ -86,7 +86,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|           <> |           <> | ||||||
|             <Space className="w-full tw-justify-between ant-space-authMechanism"> |             <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|               <Input.Password |               <Input.Password | ||||||
|                 contentEditable={false} |                 readOnly | ||||||
|                 data-testid="token" |                 data-testid="token" | ||||||
|                 placeholder="Generate new token..." |                 placeholder="Generate new token..." | ||||||
|                 value={JWTToken} |                 value={JWTToken} | ||||||
| @ -146,7 +146,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|             <Typography.Text>Account Email</Typography.Text> |             <Typography.Text>Account Email</Typography.Text> | ||||||
|             <Space className="w-full tw-justify-between ant-space-authMechanism"> |             <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|               <Input |               <Input | ||||||
|                 contentEditable={false} |                 readOnly | ||||||
|                 data-testid="botUser-email" |                 data-testid="botUser-email" | ||||||
|                 value={botUser.email} |                 value={botUser.email} | ||||||
|               /> |               /> | ||||||
| @ -159,7 +159,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|               <Typography.Text>SecretKey</Typography.Text> |               <Typography.Text>SecretKey</Typography.Text> | ||||||
|               <Space className="w-full tw-justify-between ant-space-authMechanism"> |               <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|                 <Input.Password |                 <Input.Password | ||||||
|                   contentEditable={false} |                   readOnly | ||||||
|                   data-testid="secretKey" |                   data-testid="secretKey" | ||||||
|                   value={authConfig?.secretKey} |                   value={authConfig?.secretKey} | ||||||
|                 /> |                 /> | ||||||
| @ -172,7 +172,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|               <Typography.Text>PrivateKey</Typography.Text> |               <Typography.Text>PrivateKey</Typography.Text> | ||||||
|               <Space className="w-full tw-justify-between ant-space-authMechanism"> |               <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|                 <Input.Password |                 <Input.Password | ||||||
|                   contentEditable={false} |                   readOnly | ||||||
|                   data-testid="privateKey" |                   data-testid="privateKey" | ||||||
|                   value={authConfig?.privateKey} |                   value={authConfig?.privateKey} | ||||||
|                 /> |                 /> | ||||||
| @ -185,7 +185,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|               <Typography.Text>ClientSecret</Typography.Text> |               <Typography.Text>ClientSecret</Typography.Text> | ||||||
|               <Space className="w-full tw-justify-between ant-space-authMechanism"> |               <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|                 <Input.Password |                 <Input.Password | ||||||
|                   contentEditable={false} |                   readOnly | ||||||
|                   data-testid="clientSecret" |                   data-testid="clientSecret" | ||||||
|                   value={authConfig?.clientSecret} |                   value={authConfig?.clientSecret} | ||||||
|                 /> |                 /> | ||||||
| @ -198,7 +198,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|               <Typography.Text>Audience</Typography.Text> |               <Typography.Text>Audience</Typography.Text> | ||||||
|               <Space className="w-full tw-justify-between ant-space-authMechanism"> |               <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|                 <Input |                 <Input | ||||||
|                   contentEditable={false} |                   readOnly | ||||||
|                   data-testid="audience" |                   data-testid="audience" | ||||||
|                   value={authConfig?.audience} |                   value={authConfig?.audience} | ||||||
|                 /> |                 /> | ||||||
| @ -211,7 +211,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|               <Typography.Text>ClientId</Typography.Text> |               <Typography.Text>ClientId</Typography.Text> | ||||||
|               <Space className="w-full tw-justify-between ant-space-authMechanism"> |               <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|                 <Input |                 <Input | ||||||
|                   contentEditable={false} |                   readOnly | ||||||
|                   data-testid="clientId" |                   data-testid="clientId" | ||||||
|                   value={authConfig?.clientId} |                   value={authConfig?.clientId} | ||||||
|                 /> |                 /> | ||||||
| @ -223,11 +223,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|             <> |             <> | ||||||
|               <Typography.Text>Email</Typography.Text> |               <Typography.Text>Email</Typography.Text> | ||||||
|               <Space className="w-full tw-justify-between ant-space-authMechanism"> |               <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|                 <Input |                 <Input readOnly data-testid="email" value={authConfig?.email} /> | ||||||
|                   contentEditable={false} |  | ||||||
|                   data-testid="email" |  | ||||||
|                   value={authConfig?.email} |  | ||||||
|                 /> |  | ||||||
|                 <CopyToClipboardButton copyText={authConfig?.email} /> |                 <CopyToClipboardButton copyText={authConfig?.email} /> | ||||||
|               </Space> |               </Space> | ||||||
|             </> |             </> | ||||||
| @ -237,7 +233,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|               <Typography.Text>OrgURL</Typography.Text> |               <Typography.Text>OrgURL</Typography.Text> | ||||||
|               <Space className="w-full tw-justify-between ant-space-authMechanism"> |               <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|                 <Input |                 <Input | ||||||
|                   contentEditable={false} |                   readOnly | ||||||
|                   data-testid="orgURL" |                   data-testid="orgURL" | ||||||
|                   value={authConfig?.orgURL} |                   value={authConfig?.orgURL} | ||||||
|                 /> |                 /> | ||||||
| @ -250,7 +246,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|               <Typography.Text>Scopes</Typography.Text> |               <Typography.Text>Scopes</Typography.Text> | ||||||
|               <Space className="w-full tw-justify-between ant-space-authMechanism"> |               <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|                 <Input |                 <Input | ||||||
|                   contentEditable={false} |                   readOnly | ||||||
|                   data-testid="scopes" |                   data-testid="scopes" | ||||||
|                   value={authConfig?.scopes.join(',')} |                   value={authConfig?.scopes.join(',')} | ||||||
|                 /> |                 /> | ||||||
| @ -265,7 +261,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|               <Typography.Text>Domain</Typography.Text> |               <Typography.Text>Domain</Typography.Text> | ||||||
|               <Space className="w-full tw-justify-between ant-space-authMechanism"> |               <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|                 <Input |                 <Input | ||||||
|                   contentEditable={false} |                   readOnly | ||||||
|                   data-testid="domain" |                   data-testid="domain" | ||||||
|                   value={authConfig?.domain} |                   value={authConfig?.domain} | ||||||
|                 /> |                 /> | ||||||
| @ -278,7 +274,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|               <Typography.Text>Authority</Typography.Text> |               <Typography.Text>Authority</Typography.Text> | ||||||
|               <Space className="w-full tw-justify-between ant-space-authMechanism"> |               <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|                 <Input |                 <Input | ||||||
|                   contentEditable={false} |                   readOnly | ||||||
|                   data-testid="authority" |                   data-testid="authority" | ||||||
|                   value={authConfig?.authority} |                   value={authConfig?.authority} | ||||||
|                 /> |                 /> | ||||||
| @ -291,7 +287,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|               <Typography.Text>TokenEndpoint</Typography.Text> |               <Typography.Text>TokenEndpoint</Typography.Text> | ||||||
|               <Space className="w-full tw-justify-between ant-space-authMechanism"> |               <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|                 <Input |                 <Input | ||||||
|                   contentEditable={false} |                   readOnly | ||||||
|                   data-testid="tokenEndpoint" |                   data-testid="tokenEndpoint" | ||||||
|                   value={authConfig?.tokenEndpoint} |                   value={authConfig?.tokenEndpoint} | ||||||
|                 /> |                 /> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sachin Chaurasiya
						Sachin Chaurasiya