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

Skip to content

Scopes still persisted when required attribute is set to Always #24081

@pedroigor

Description

@pedroigor

Before reporting an issue

Area

user-profile

Describe the bug

When creating or updating an attribute, setting the Required when setting to Always still persists the scopes from the Scopes are requested option.

The Always and Scopes are requested are mutually exclusive.

Version

22.0.4

Expected behavior

The Admin UI should work as follows:

  • If the Enabled when setting is set to Always, the selector JSON field of the attribute configuration should not be set at all.
  • If the Required when setting is set to Always, the required.scopes JSON field of the attribute configuration should not be set at all.

Actual behavior

The client scopes are always set when enabling or marking a feature as required even though the Always option is set.

How to Reproduce?

See #20852 (comment).

Anything else?

Created from #20852 (comment).

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions