Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UMA resource registration : http method must be mentioned one time within one path otherwise operation must fail #138

Closed
yuriyz opened this issue Jan 13, 2018 · 1 comment
Assignees
Milestone

Comments

@yuriyz
Copy link
Contributor

yuriyz commented Jan 13, 2018

UMA resource registration : http method must be mentioned one time within one path otherwise operation must fail

Invalid json

{
  "resources": [
    {
      "path": "/ws/phone",
      "conditions": [
        {
          "httpMethods": [
            "GET", "PUT"
          ],
          "scopes": [
            "http://photoz.example.com/dev/actions/all",
            "http://photoz.example.com/dev/actions/view"
          ],
          "ticketScopes": [
            "http://photoz.example.com/dev/actions/view"
          ]
        },
        {
          "httpMethods": [
            "PUT",
            "POST"
          ],
          "scopes": [
            "http://photoz.example.com/dev/actions/all",
            "http://photoz.example.com/dev/actions/add"
          ],
          "ticketScopes": [
            "http://photoz.example.com/dev/actions/add"
          ]
        },
        {
          "httpMethods": [
            "DELETE"
          ],
          "scopes": [
            "http://photoz.example.com/dev/actions/all",
            "http://photoz.example.com/dev/actions/remove"
          ],
          "ticketScopes": [
            "http://photoz.example.com/dev/actions/remove"
          ]
        }
      ]
    }
  ]
}

Correct json

{
  "resources": [
    {
      "path": "/ws/phone",
      "conditions": [
        {
          "httpMethods": [
            "GET"
          ],
          "scopes": [
            "http://photoz.example.com/dev/actions/all",
            "http://photoz.example.com/dev/actions/view"
          ],
          "ticketScopes": [
            "http://photoz.example.com/dev/actions/view"
          ]
        },
        {
          "httpMethods": [
            "PUT",
            "POST"
          ],
          "scopes": [
            "http://photoz.example.com/dev/actions/all",
            "http://photoz.example.com/dev/actions/add"
          ],
          "ticketScopes": [
            "http://photoz.example.com/dev/actions/add"
          ]
        },
        {
          "httpMethods": [
            "DELETE"
          ],
          "scopes": [
            "http://photoz.example.com/dev/actions/all",
            "http://photoz.example.com/dev/actions/remove"
          ],
          "ticketScopes": [
            "http://photoz.example.com/dev/actions/remove"
          ]
        }
      ]
    }
  ]
}
@yuriyz yuriyz self-assigned this Jan 13, 2018
@yuriyz yuriyz added this to the 3.1.2 milestone Jan 13, 2018
yuriyz added a commit to GluuFederation/docs-oxd-prod that referenced this issue Jan 13, 2018
yuriyz added a commit to GluuFederation/docs-oxd-prod that referenced this issue Jan 13, 2018
yuriyz added a commit to GluuFederation/uma-rs that referenced this issue Jan 15, 2018
yuriyz added a commit that referenced this issue Jan 16, 2018
@yuriyz
Copy link
Contributor Author

yuriyz commented Jan 19, 2018

implemented

@yuriyz yuriyz closed this as completed Jan 19, 2018
yuriyz added a commit to GluuFederation/docs-oxd-prod that referenced this issue Feb 15, 2018
yuriyz added a commit to GluuFederation/docs-oxd-prod that referenced this issue Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant