How-tos

2 mins read

Protecting Applications With the Use of Application Metadata

Instructions on how to protect applications using application metadata in Cloudentity

Note

Application metadata can be used for validating policies. It enables, for example, blocking the scope assignment to an application identified with specific metadata.

Prerequisites

  • You can log in to Cloudentity as an administrator.
  • You have at least one application in Cloudentity.

Configure App Metadata

  1. Select Applications » Clients from the sidebar.

  2. In the client Metadata view, select the Client metadata tab.

  3. In the Client metadata view, enter the metadata as a JSON.

  4. When your JSON is ready, select SAVE CHANGES.

Result

You’ve configured metadata for the application and you are able to use this data for your purposes.

Create Policy

  1. Create a Cloudentity policy as described in Creating a policy in the Cloudentity policy editor.

  2. In the policy generating engine, select ADD VALIDATOR.

  3. From the fly-out Add new validator pane, select Client.

  4. In the Client validator, select ADD FIELD.

  5. In the Cross context condition editor

    1. Enter the name of a client-content attribute that you want to use, for example client_id.
    2. Select an attribute operator, for example, contains.
    3. Enter a value (target) for your attribute that would validate the policy, for example auth21.
    4. Select SAVE to complete the field setup.

  6. Select the OK icon from the top right corner if you’re done with adding fields.

  7. If you’re done with adding validators, select SAVE to complete the policy setup.

Result

Your policy validating application metadata is ready to be used.

Next Steps

Use the application metadata for various authorization operations on the 3rd party application in Cloudentity. See, for example, Protecting scopes with access policies as a reference.

Updated: Nov 2, 2023