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

Return associating roles' allowed audience on request #515

Merged
merged 4 commits into from
Oct 25, 2023

Conversation

AnuradhaSK
Copy link
Contributor

@AnuradhaSK AnuradhaSK commented Oct 24, 2023

Purpose

$Subject

Part of wso2/product-is#16363

Sample Request:

GET https://localhost:9443/api/server/v1/applications?attributes=associatedRoles.allowedAudience

Sample Response:

{
    "totalResults": 5,
    "startIndex": 1,
    "count": 5,
    "applications": [
        {
            "id": "725a3886-f9e0-4a85-a44b-c6d03762674e",
            "name": "App2",
            "access": "WRITE",
            "self": "/api/server/v1/applications/725a3886-f9e0-4a85-a44b-c6d03762674e",
            "associatedRoles": {
                "allowedAudience": "APPLICATION"
            }
        },
        {
            "id": "abaec5b7-bff9-40e0-9c4c-a800276a107f",
            "name": "App1",
            "access": "WRITE",
            "self": "/api/server/v1/applications/abaec5b7-bff9-40e0-9c4c-a800276a107f",
            "associatedRoles": {
                "allowedAudience": "APPLICATION"
            }
        },
        {
            "id": "e099d7c8-a881-4a32-bd10-bb2de120839b",
            "name": "app",
            "description": "dsdas",
            "image": "",
            "accessUrl": "",
            "access": "WRITE",
            "self": "/api/server/v1/applications/e099d7c8-a881-4a32-bd10-bb2de120839b",
            "associatedRoles": {
                "allowedAudience": "ORGANIZATION"
            }
        },
        {
            "id": "5d2fc0f7-f044-4586-b6e1-96bb1e043979",
            "name": "Console",
            "description": "This is the console application.",
            "accessUrl": "https://localhost:9443/console",
            "access": "READ",
            "self": "/api/server/v1/applications/5d2fc0f7-f044-4586-b6e1-96bb1e043979",
            "associatedRoles": {
                "allowedAudience": "ORGANIZATION"
            }
        },
        {
            "id": "f18b1ef4-24af-42bd-8ad4-b41f8dc5561e",
            "name": "My Account",
            "description": "This is the my account application.",
            "accessUrl": "https://localhost:9443/myaccount",
            "access": "READ",
            "self": "/api/server/v1/applications/f18b1ef4-24af-42bd-8ad4-b41f8dc5561e",
            "associatedRoles": {
                "allowedAudience": "ORGANIZATION"
            }
        }
    ],
    "links": []
}

Depends on

@jenkins-is-staging
Copy link

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6622540153
Status: cancelled

@jenkins-is-staging
Copy link

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6622766978
Status: failure

@AnuradhaSK
Copy link
Contributor Author

AnuradhaSK commented Oct 25, 2023

Verified locally:

Screenshot 2023-10-25 at 12 37 02

For the first test failure fix is: wso2/product-is#17191
The second test failure is an intermittent failure.

Re-ran the failed tests with the fix:

Screenshot 2023-10-25 at 12 51 19 Intermittent failure was successful Screenshot 2023-10-25 at 12 58 48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants