In the module deployment editor, you can create and assign
security roles to web service exports.
About this task
To create and assign security roles to a web service export:
Procedure
- In the Business Integration view,
select the module that contains your web services export.
- Right-click the selected module and select Open
Deployment Editor. The module deployment editor opens.
- Click the Design tab.
- Add a security role at the web project level by completing
the following steps:
- Select the Web Project node.
- Click Add and select Security Role. A Security Role node is added under Web
Project.
- In the Role name field, type
the name that you want to assign to the new security role. For example, Users.
- In the Description field, type
the description that you want to assign to the new security role.
For example, Security role for general users.
- Add a security constraint by completing the following steps:
- Select the Web Project node.
- Click Add and select Security Constraint. A Security Constraint node is added
beneath Web Project.
- In the Constraint name field,
type the name that you want to assign to the new export security constraint.
For example, constraint1.
- Select the Web Resource Collection node.
- In the Resource name field, type
the name that you want to assign to the web resource. For example, receiveWebServiceCallFromClient.
- Under the Web Resource Collection node, add HTTP Method
nodes for all of the available HTTP methods that you want constrained.
- Under the Web Resource Collection node, add URL Pattern
nodes for all the patterns that you want constrained.
- Add the security role to the authorization constraint by
completing the following steps:
- Select the Authorized Roles node.
- In the Description field, type
the description that you want to assign to the authorization constraint.
For example, UsersAuthConstraint.
- Click Add and select Role. A role node is added under Authorized Roles.
- For the Role field, select the
role that you want to associate with the authorization constraint.
For example, Users.
- Press Ctrl-S to save your changes and then close
the module deployment editor.
What to do next
When you have finished creating and assigning security roles
to your web service export, you should bind the security roles that
are defined in your assembly diagram by following the instructions
in the topic "Binding roles defined in assembly diagrams."