mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
Add /api/oauth/code API.
This commit is contained in:
@ -88,6 +88,16 @@ class TokenEditPage extends React.Component {
|
||||
}} />
|
||||
</Col>
|
||||
</Row>
|
||||
<Row style={{marginTop: '20px'}} >
|
||||
<Col style={{marginTop: '5px'}} span={2}>
|
||||
{i18next.t("general:Authorization Code")}:
|
||||
</Col>
|
||||
<Col span={22} >
|
||||
<Input value={this.state.token.code} onChange={e => {
|
||||
this.updateTokenField('code', e.target.value);
|
||||
}} />
|
||||
</Col>
|
||||
</Row>
|
||||
<Row style={{marginTop: '20px'}} >
|
||||
<Col style={{marginTop: '5px'}} span={2}>
|
||||
{i18next.t("general:Access Token")}:
|
||||
|
@ -124,6 +124,13 @@ class TokenListPage extends React.Component {
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
title: i18next.t("token:Authorization Code"),
|
||||
dataIndex: 'code',
|
||||
key: 'code',
|
||||
// width: '150px',
|
||||
sorter: (a, b) => a.code.localeCompare(b.code),
|
||||
},
|
||||
{
|
||||
title: i18next.t("token:Access Token"),
|
||||
dataIndex: 'accessToken',
|
||||
|
Reference in New Issue
Block a user