截止‘运力管理’模块
This commit is contained in:
@@ -33,10 +33,14 @@ const isRefreshTokenRequest = config =>
|
||||
(config.url || '').includes('/oauth/token') &&
|
||||
(config.params || {}).grant_type === REFRESH_GRANT_TYPE;
|
||||
|
||||
// 判断是否为IAM统一身份认证登录请求
|
||||
const isIamSsoLoginRequest = config => (config.url || '').includes('/iam/sso/token');
|
||||
|
||||
// 判断是否为重新登录请求:会开启新的会话周期
|
||||
const isLoginRequest = config => {
|
||||
const grantType = (config.params || {}).grant_type;
|
||||
return (
|
||||
isIamSsoLoginRequest(config) ||
|
||||
(config.url || '').includes('/oauth/token') && !!grantType && grantType !== REFRESH_GRANT_TYPE
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user