|
|
|
@ -51,7 +51,7 @@ export const verifyOld = ({ username, password }): Promise<LoginRes> => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export const verify = ({ username, password }): Promise<LoginRes> => {
|
|
|
|
export const verify = ({ username, password }): Promise<LoginRes> => {
|
|
|
|
return fetch('/api/sso/verify', {
|
|
|
|
return fetch('/api/v1/bpms-workbench/sso/verify', {
|
|
|
|
method: 'POST',
|
|
|
|
method: 'POST',
|
|
|
|
headers: {
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'application/json'
|
|
|
|
'Content-Type': 'application/json'
|
|
|
|
@ -63,10 +63,9 @@ export const verify = ({ username, password }): Promise<LoginRes> => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const ssoCallBack = ({ ticket, redirectUrl }) => {
|
|
|
|
export const ssoCallBack = ({ ticket, redirectUrl }) => {
|
|
|
|
const params = new URLSearchParams({ ticket, redirectUrl });
|
|
|
|
const params = new URLSearchParams({ ticket, redirectUrl });
|
|
|
|
return fetch(`/api/sso/callback?${params.toString()}`, {
|
|
|
|
return fetch(`/api/v1/bpms-workbench/sso/callback?${params.toString()}`, {
|
|
|
|
method: 'GET',
|
|
|
|
method: 'GET',
|
|
|
|
headers: {
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'application/json'
|
|
|
|
'Content-Type': 'application/json'
|
|
|
|
|