You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`[ignores]`|`RegExp[]`|`[ /\/login/, /assets\// ]`| Ignore the list of URL addresses | ✅ |
80
-
|`[allow_anonymous_key]`|`string`|`_allow_anonymous`| Anonymous login KEY identification, if the request parameter with the KEY is to ignore token check and add action, the key value will be removed when the request is truth | ✅ |
80
+
|(deprecated) `[allow_anonymous_key]`|`string`|`_allow_anonymous`| Will be removed in 15.0.0, Pls used [ALLOW_ANONYMOUS](https://github.com/ng-alain/delon/blob/master/packages/auth/src/token.ts)`HttpContext` instead. Anonymous login KEY identification, if the request parameter with the KEY is to ignore token check and add action, the key value will be removed when the request is truth | ✅ |
81
81
|`[executeOtherInterceptors]`|`boolean`|`true`| Whether continue to call other interceptor `intercept` method after token missing | ✅ |
82
82
|`[refreshTime]`|`number`|`3000`| Refresh time (unit: ms) | ✅ |
83
83
|`[refreshOffset]`|`number`|`6000`| Offset value (unit: ms), it is recommended to set according to the multiple of `refreshTime`| ✅ |
|(deprecated) `[allow_anonymous_key]`|`string`|`_allow_anonymous`| Will be removed in 15.0.0, Pls used [ALLOW_ANONYMOUS](https://github.com/ng-alain/delon/blob/master/packages/auth/src/token.ts)`HttpContext` instead. 允许匿名登录标识号,若请求参数中带有该KEY表示忽略TOKEN校验与添加动作,同时真实请求时会移除该数据 | ✅ |
statusText=`来自 @delon/auth 的拦截,所请求URL未授权,若是登录API可加入 [url?_allow_anonymous=true] 来表示忽略校验,更多方法请参考: https://ng-alain.com/auth/getting-started#AlainAuthConfig\nThe interception from @delon/auth, the requested URL is not authorized. If the login API can add [url?_allow_anonymous=true] to ignore the check, please refer to: https://ng-alain.com/auth/getting-started#AlainAuthConfig`;
79
+
}
73
80
constres=newHttpErrorResponse({
74
81
url: req.url,
75
82
headers: req.headers,
76
83
status: 401,
77
-
statusText: `来自 @delon/auth 的拦截,所请求URL未授权,若是登录API可加入 [url?_allow_anonymous=true] 来表示忽略校验,更多方法请参考: https://ng-alain.com/auth/getting-started#AlainAuthConfig\nThe interception from @delon/auth, the requested URL is not authorized. If the login API can add [url?_allow_anonymous=true] to ignore the check, please refer to: https://ng-alain.com/auth/getting-started#AlainAuthConfig`
* @deprecated Will be removed in 15.x, Pls used [ALLOW_ANONYMOUS](https://github.com/ng-alain/delon/blob/master/packages/auth/src/token.ts) `HttpContext` instead
0 commit comments