这是基于vue-vben-admin 模板适用于abp vNext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
465 B

import type { OpenIdConfiguration } from '@abp/core';
import { useRequest } from '@abp/request';
export function useOpenIdApi() {
const { cancel, request } = useRequest();
/**
* openid发现端点
* @returns OpenId配置数据
*/
function discoveryApi(): Promise<OpenIdConfiguration> {
return request<OpenIdConfiguration>('/.well-known/openid-configuration', {
method: 'GET',
});
}
return {
cancel,
discoveryApi,
};
}