Firebase身份验证安全方案的Swagger OpenAPI 3文档

4

这个回答解决了你的问题吗?Google Cloud Endpoints对OpenApi 3的支持 - Software2
1个回答

2
components:
  securitySchemes:
    firebase:
      type: "oauth2"
      flows:
        implicit:
          authorizationUrl: ""
          scopes:
            read: Grants read access
            write: Grants write access
            admin: Grants access to admin operations
      # Replace YOUR-PROJECT-ID with your project ID
      x-google-issuer: "https://securetoken.google.com/YOUR-PROJECT-ID"
      x-google-jwks_uri: "https://www.googleapis.com/service_accounts/v1/metadata/x509/securetoken@system.gserviceaccount.com"
      x-google-audiences: "YOUR-PROJECT-ID"

security:
  - firebase: [ ]


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接