zoukankan      html  css  js  c++  java
  • AllowAnonymousAttribute Class

    AllowAnonymousAttribute Class

    // System.Web.Http.AuthorizeAttribute
    // Token: 0x0600010A RID: 266 RVA: 0x000048D5 File Offset: 0x00002AD5
    private static bool SkipAuthorization(HttpActionContext actionContext)
    {
        return actionContext.ActionDescriptor.GetCustomAttributes<AllowAnonymousAttribute>().Any<AllowAnonymousAttribute>() || actionContext.ControllerContext.ControllerDescriptor.GetCustomAttributes<AllowAnonymousAttribute>().Any<AllowAnonymousAttribute>();
    }
    // System.Web.Http.AuthorizeAttribute
    // Token: 0x06000108 RID: 264 RVA: 0x0000487C File Offset: 0x00002A7C
    public override void OnAuthorization(HttpActionContext actionContext)
    {
        if (actionContext == null)
        {
            throw Error.ArgumentNull("actionContext");
        }
        if (AuthorizeAttribute.SkipAuthorization(actionContext))
        {
            return;
        }
        if (!this.IsAuthorized(actionContext))
        {
            this.HandleUnauthorizedRequest(actionContext);
        }
    }

  • 相关阅读:
    RPA浏览器及word需要注意的点
    捕获alert弹框
    创建文件夹
    Excel 筛选功能
    RPA_播放语音
    flask路由
    python操作git
    RPA_关键词识别
    初始flask
    RPA中需要注意的问题
  • 原文地址:https://www.cnblogs.com/chucklu/p/13332625.html
Copyright © 2011-2022 走看看