mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
Change cert default algorithm to RS256.
This commit is contained in:
@ -147,7 +147,7 @@ func initBuiltInCert() {
|
|||||||
DisplayName: "Built-in Cert",
|
DisplayName: "Built-in Cert",
|
||||||
Scope: "JWT",
|
Scope: "JWT",
|
||||||
Type: "x509",
|
Type: "x509",
|
||||||
CryptoAlgorithm: "RSA",
|
CryptoAlgorithm: "RS256",
|
||||||
BitSize: 4096,
|
BitSize: 4096,
|
||||||
ExpireInYears: 20,
|
ExpireInYears: 20,
|
||||||
PublicKey: tokenJwtPublicKey,
|
PublicKey: tokenJwtPublicKey,
|
||||||
|
@ -136,7 +136,7 @@ class CertEditPage extends React.Component {
|
|||||||
})}>
|
})}>
|
||||||
{
|
{
|
||||||
[
|
[
|
||||||
{id: 'RSA', name: 'RSA'},
|
{id: 'RS256', name: 'RS256'},
|
||||||
].map((item, index) => <Option key={index} value={item.id}>{item.name}</Option>)
|
].map((item, index) => <Option key={index} value={item.id}>{item.name}</Option>)
|
||||||
}
|
}
|
||||||
</Select>
|
</Select>
|
||||||
|
@ -32,7 +32,7 @@ class CertListPage extends BaseListPage {
|
|||||||
displayName: `New Cert - ${randomName}`,
|
displayName: `New Cert - ${randomName}`,
|
||||||
scope: "JWT",
|
scope: "JWT",
|
||||||
type: "x509",
|
type: "x509",
|
||||||
cryptoAlgorithm: "RSA",
|
cryptoAlgorithm: "RS256",
|
||||||
bitSize: 4096,
|
bitSize: 4096,
|
||||||
expireInYears: 20,
|
expireInYears: 20,
|
||||||
publicKey: "",
|
publicKey: "",
|
||||||
@ -131,7 +131,7 @@ class CertListPage extends BaseListPage {
|
|||||||
key: 'cryptoAlgorithm',
|
key: 'cryptoAlgorithm',
|
||||||
filterMultiple: false,
|
filterMultiple: false,
|
||||||
filters: [
|
filters: [
|
||||||
{text: 'RSA', value: 'RSA'},
|
{text: 'RS256', value: 'RS256'},
|
||||||
],
|
],
|
||||||
width: '190px',
|
width: '190px',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
|
Reference in New Issue
Block a user