fix: remove custom header in oidc well known request
This commit is contained in:
@@ -19,6 +19,7 @@ import {
|
|||||||
verifyJSON,
|
verifyJSON,
|
||||||
} from '../helpers/utils';
|
} from '../helpers/utils';
|
||||||
import { API } from '../helpers/api';
|
import { API } from '../helpers/api';
|
||||||
|
import axios from "axios";
|
||||||
|
|
||||||
const SystemSetting = () => {
|
const SystemSetting = () => {
|
||||||
let [inputs, setInputs] = useState({
|
let [inputs, setInputs] = useState({
|
||||||
@@ -383,7 +384,7 @@ const SystemSetting = () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const res = await API.get(inputs['oidc.well_known']);
|
const res = await axios.create().get(inputs['oidc.well_known']);
|
||||||
inputs['oidc.authorization_endpoint'] =
|
inputs['oidc.authorization_endpoint'] =
|
||||||
res.data['authorization_endpoint'];
|
res.data['authorization_endpoint'];
|
||||||
inputs['oidc.token_endpoint'] = res.data['token_endpoint'];
|
inputs['oidc.token_endpoint'] = res.data['token_endpoint'];
|
||||||
|
|||||||
Reference in New Issue
Block a user