Commit 9f165b89 by wzxjohn

fix: remove custom header in oidc well known request

parent 93f634d2
...@@ -19,6 +19,7 @@ import { ...@@ -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 = () => { ...@@ -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'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment