【问题标题】:AWS AUTH0 DELEGATION ERROR Missing principal parameter (invalid_request)AWS AUTH0 DELEGATION ERROR 缺少委托人参数 (invalid_request)
【发布时间】:2020-03-29 12:36:57
【问题描述】:

在尝试从 Auth0 获取委托令牌以访问 AWS 上的 S3 存储桶时,我收到此错误:

{
    "error": "invalid_request",
    "error_description": "Missing principal parameter"
}

这是请求的正文:

{ 
    "client_id": "HIDDEN CLIENT ID",
    "grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
    "id_token": "HIDDEN ID TOKEN",
    "target": "HIDDEN TARGET",
    "api_type": "aws",
    "role": "HIDDEN ROLE ARN"
}

【问题讨论】:

    标签: amazon-web-services amazon-s3 auth0 delegation principal


    【解决方案1】:

    可能还有其他解决方案,但我如何让它发挥作用是:

    Replace,
             "api_type": "aws"
    With: 
             "api_type": "aws:s3"
    OR:
             "api_type": "aws:x" (where x is any AWS service code that you are trying to access!)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-11
      • 1970-01-01
      • 2018-03-13
      • 1970-01-01
      • 2015-10-30
      • 2021-05-13
      • 2017-12-09
      • 1970-01-01
      相关资源
      最近更新 更多