-
Notifications
You must be signed in to change notification settings - Fork 1
Role Provider
You’ll notice each type of provider has it’s own AWS credential requirements and does not require the config section for the general provider. This is intentional, it allows for AWS information to be provided by different accounts.
To use the ASP.NET role provider, simply add the membership section to your web.config as shown below
<roleManager enabled="true" defaultProvider="SDBRoleProvider">
<providers>
<clear/>
<add name="SDBRoleProvider" type="MultiCore.Amazon.Providers.SDBRoleProvider" domain="***your_sdb_role_domain***" accessKey="***your_key***" secretKey="***your_secret***" />
The domain is just the simple db domain you wish to use for storing roles. It will be created for you if it doesn’t exist.
There is no requirement for a role to user relationship table. I kept it simple and the user.role is used as a key in the roles table.