Use the NamedCredentialAttribute Class
Design Time Option 1: Use the NamedCredentialAttribute class
Note: Use this option if your app will not include an editor. The remaining options for implementing credential management are intended for use within an app editor.
- Configure security in the ArchestrA IDE. Add authorized users and Named Credentials for the galaxy. See Configure Named Credentials and the section "Configure Security" in the Application Server User Guide.
- Decorate a type string public property with the NamedCredentialAttribute class. This adds a built-in dropdown list of configured credential names.
- When the ViewApp builder adds your app to a layout pane, the dropdown list containing the configured credential names appears in the app properties.
- The ViewApp builder selects the appropriate named credential from the dropdown list.
- When the ViewApp is deployed, the AVEVA OMI framework provides the name of the configured credential to the app. See Named Credentials at Run Time for information about the run-time workflow.
See Also