-
This commit is contained in:
@ -184,7 +184,7 @@ const Tokens: React.FC = () => {
|
||||
|
||||
const verifyRequest: VerifyRequest = {
|
||||
app_id: values.app_id,
|
||||
type: 'static',
|
||||
type: values.token_type || 'static',
|
||||
token: values.token,
|
||||
permissions: values.permissions || [],
|
||||
};
|
||||
@ -510,19 +510,36 @@ const Tokens: React.FC = () => {
|
||||
layout="vertical"
|
||||
onFinish={handleVerifyToken}
|
||||
>
|
||||
<Form.Item
|
||||
name="app_id"
|
||||
label="Application"
|
||||
rules={[{ required: true, message: 'Please select an application' }]}
|
||||
>
|
||||
<Select placeholder="Select application">
|
||||
{applications.map(app => (
|
||||
<Option key={app.app_id} value={app.app_id}>
|
||||
{app.app_id}
|
||||
</Option>
|
||||
))}
|
||||
</Select>
|
||||
</Form.Item>
|
||||
<Row gutter={16}>
|
||||
<Col span={12}>
|
||||
<Form.Item
|
||||
name="app_id"
|
||||
label="Application"
|
||||
rules={[{ required: true, message: 'Please select an application' }]}
|
||||
>
|
||||
<Select placeholder="Select application">
|
||||
{applications.map(app => (
|
||||
<Option key={app.app_id} value={app.app_id}>
|
||||
{app.app_id}
|
||||
</Option>
|
||||
))}
|
||||
</Select>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
<Form.Item
|
||||
name="token_type"
|
||||
label="Token Type"
|
||||
rules={[{ required: true, message: 'Please select token type' }]}
|
||||
initialValue="static"
|
||||
>
|
||||
<Select placeholder="Select token type">
|
||||
<Option value="static">Static Token</Option>
|
||||
<Option value="user">User Token (JWT)</Option>
|
||||
</Select>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
<Form.Item
|
||||
name="token"
|
||||
@ -530,7 +547,7 @@ const Tokens: React.FC = () => {
|
||||
rules={[{ required: true, message: 'Please enter the token to verify' }]}
|
||||
>
|
||||
<TextArea
|
||||
placeholder="Enter the token to verify"
|
||||
placeholder="Enter the token to verify (paste from Token Tester for user tokens, or from static token creation)"
|
||||
rows={3}
|
||||
style={{ fontFamily: 'monospace' }}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user