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

Can't assign a group to a Backend-to-Backend application #9158

Closed
Mattue opened this issue Jul 31, 2023 · 1 comment
Closed

Can't assign a group to a Backend-to-Backend application #9158

Mattue opened this issue Jul 31, 2023 · 1 comment

Comments

@Mattue
Copy link

Mattue commented Jul 31, 2023

Describe the bug

It's not possible to assign application to a group. When trying to add group 400 Bad request is returned.

To Reproduce

Prerequisites:

  1. Created and valid Backend-to-Backend application
  2. Created and valid Group

Steps to reproduce the behavior:

  1. Open console ui
  2. Log in
  3. Go to Applications
  4. Click on your Backend-to-Backend application
  5. Scroll to Access-Control section
  6. Chose any group
  7. Click SAVE
  8. See Bad request error on bottom right corner

Expected behavior

Group is assigned to Backend-to-Backend application with no issue.

Current behavior

Group is not assigning to Backend-to-Backend application with Bad request error

Useful information

UI Request

PUT [http://localhost:8083/management/organizations/DEFAULT/environments/DEFAULT/applications/a086537d-7a60-4e4c-8653-7d7a601e4c94](http://localhost:8083/management/organizations/DEFAULT/environments/DEFAULT/applications/a086537d-7a60-4e4c-8653-7d7a601e4c94)([http://localhost:8083/management/organizations/DEFAULT/environments/DEFAULT/applications/a086537d-7a60-4e4c-8653-7d7a601e4c94](http://localhost:8083/management/organizations/DEFAULT/environments/DEFAULT/applications/a086537d-7a60-4e4c-8653-7d7a601e4c94))

{
 "name": "test13",
 "description": "test13",
 "groups": [
 "7088a6a8-68f8-41df-88a6-a868f881dfe9"
 ],
 "settings": {
 "oauth": 

 { "client_id": "d2e5bdf6-6003-44a2-ae1f-f740838ae2c5", "client_secret": "5TxrRLuCbkds3q2vkekzfpl5aLQwQ3lP", "redirect_uris": [], "response_types": [ "code", "none" ], "grant_types": [ "authorization_code", "client_credentials" ], "renew_client_secret_supported": false } 

 },
 "disable_membership_notifications": false,
 "api_key_mode": "UNSPECIFIED"
 }

UI Response

{
 "parameters": 

 { "targetGrantTypes": "authorization_code|client_credentials" } 

,
 "technicalCode": "application.grantTypesNotAllowed",
 "http_status": 400
 }

Environment

APIM 3.20.14

Dependencies

In 3.20.13 error was Cannot invoke "String.toLowerCase()" because "typeId" is null as in #9157 , so maybe related to #8661

@exalate-issue-sync exalate-issue-sync bot changed the title [APIM] Can't assign group to Backend-to-Backend application Can't assign a group to a Backend-to-Backend application Oct 25, 2023
@exalate-issue-sync
Copy link

This issue has been fixed in versions 4.0.11, 3.20.22, 4.2.0, 4.1.2

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

2 participants