Skip to content

cannot clear the allowed_origins or allowed_redirect_uris with an empty list #2518

Description

@PeaceNlove

Describe the bug
I want to clear the list of allowed_origins or allowed_redirect_uris
According to the docs, this has to be a list, so I provide an empty list:
https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.admin.html#arcgis.gis.admin.SecuritySettings.allowed_origins

Nothing happens after I run the code and my configured allowed_origins and allowed_redirect_uris stay the same list after I reload the security_settings

To Reproduce
Steps to reproduce the behavior:

uxs = self.gis.admin.ux.security_settings
uxs.allowed_origins =  []
uxs.allowed_redirect_uris = []

error:

none

Screenshots
If applicable, add screenshots to help explain your problem.

Expected behavior
The allowed_origins and allowed_redirect_uris should be an empty list when I reload the security_settings

Platform (please complete the following information):

  • OS: Windows
  • Python API Version 2.4.2

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions