Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Token-Exchange programmatic permission setup #20075

@Marimuthu14

Description

@Marimuthu14

Before reporting an issue

  • I have searched existing issues
  • I have reproduced the issue with the latest release

Area

admin/client/java

Describe the bug

Fine grained auth and token exchange feature enabled.
I am unable to create scope based permission/policy programmatically for token-exchange between two public clients in same realm.
unable to persist ClientPolicyRepresentation and ScopePermissionRepresentation entities especially from admin client to the kc server.
This is been working in version 14 and now upgrading to latest version we are facing issues in performing token-exchange feature.

Version

21.0.2

Expected behavior

I should be able to create the permission / policy programmatically like doing in admin console.

Actual behavior

Unable to find a method to persist the permission/policy entities to kc server from admin client.

How to Reproduce?

I am able to access the setter methods in ClientPolicyRepresentation and ScopePermissionRepresentation entities, but couldn't find a create/save method.

Anything else?

Whether scope based permission and policy creation possible programmatically, if so what is the entities to be used. Any other workaround is available to perform this in kc 21version.
My end goal is to perform token exchange between two clients of same realm programmatically or through REST API in latest version.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions