Change username in samples and DocBook to "rod".
This commit is contained in:
parent
f04f9097b1
commit
d57f6c070d
|
@ -1771,7 +1771,7 @@ if (obj instanceof UserDetails) {
|
||||||
class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
|
class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
|
||||||
<property name="userMap">
|
<property name="userMap">
|
||||||
<value>
|
<value>
|
||||||
marissa=koala,ROLE_TELLER,ROLE_SUPERVISOR
|
rod=koala,ROLE_TELLER,ROLE_SUPERVISOR
|
||||||
dianne=emu,ROLE_TELLER
|
dianne=emu,ROLE_TELLER
|
||||||
scott=wombat,ROLE_TELLER
|
scott=wombat,ROLE_TELLER
|
||||||
peter=opal,disabled,ROLE_TELLER
|
peter=opal,disabled,ROLE_TELLER
|
||||||
|
@ -3002,10 +3002,10 @@ key: A private key to prevent modification of the remember-me token
|
||||||
certificates is also included which you can use to configure your
|
certificates is also included which you can use to configure your
|
||||||
server. These are <itemizedlist>
|
server. These are <itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para><filename>marissa.p12</filename>: A PKCS12 format file
|
<para><filename>user.p12</filename>: A PKCS12 format file
|
||||||
containing the client key and certificate. These should be
|
containing the client key and certificate. These should be
|
||||||
installed in your browser. It maps to the user
|
installed in your browser. It maps to a use in the
|
||||||
<quote>marissa</quote> in the application.</para>
|
application.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
|
@ -3015,7 +3015,7 @@ key: A private key to prevent modification of the remember-me token
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para><filename>ca.jks</filename>: A Java keystore containing
|
<para><filename>ca.jks</filename>: A Java keystore containing
|
||||||
the certificate for the authority which issued marissa's
|
the certificate for the authority which issued the user's
|
||||||
certificate. This will be used by the container to validate
|
certificate. This will be used by the container to validate
|
||||||
client certificates.</para>
|
client certificates.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -3627,7 +3627,7 @@ key: A private key to prevent modification of the remember-me token
|
||||||
<bean id="inMemoryDaoImpl" class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
|
<bean id="inMemoryDaoImpl" class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
|
||||||
<property name="userMap">
|
<property name="userMap">
|
||||||
<value>
|
<value>
|
||||||
marissa=koala,ROLES_IGNORED_BY_CAS
|
rod=koala,ROLES_IGNORED_BY_CAS
|
||||||
dianne=emu,ROLES_IGNORED_BY_CAS
|
dianne=emu,ROLES_IGNORED_BY_CAS
|
||||||
scott=wombat,ROLES_IGNORED_BY_CAS
|
scott=wombat,ROLES_IGNORED_BY_CAS
|
||||||
peter=opal,disabled,ROLES_IGNORED_BY_CAS
|
peter=opal,disabled,ROLES_IGNORED_BY_CAS
|
||||||
|
@ -3743,7 +3743,7 @@ key: A private key to prevent modification of the remember-me token
|
||||||
<bean id="inMemoryDaoImpl" class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
|
<bean id="inMemoryDaoImpl" class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
|
||||||
<property name="userMap">
|
<property name="userMap">
|
||||||
<value>
|
<value>
|
||||||
marissa=koala,ROLES_IGNORED_BY_CAS
|
rod=koala,ROLES_IGNORED_BY_CAS
|
||||||
dianne=emu,ROLES_IGNORED_BY_CAS
|
dianne=emu,ROLES_IGNORED_BY_CAS
|
||||||
scott=wombat,ROLES_IGNORED_BY_CAS
|
scott=wombat,ROLES_IGNORED_BY_CAS
|
||||||
peter=opal,disabled,ROLES_IGNORED_BY_CAS
|
peter=opal,disabled,ROLES_IGNORED_BY_CAS
|
||||||
|
@ -6428,7 +6428,7 @@ INSERT INTO acl_object_identity VALUES (1, 'corp.DomainObject:1', null,
|
||||||
|
|
||||||
INSERT INTO acl_permission VALUES (null, 1, 'ROLE_SUPERVISOR', 1);
|
INSERT INTO acl_permission VALUES (null, 1, 'ROLE_SUPERVISOR', 1);
|
||||||
INSERT INTO acl_permission VALUES (null, 2, 'ROLE_SUPERVISOR', 0);
|
INSERT INTO acl_permission VALUES (null, 2, 'ROLE_SUPERVISOR', 0);
|
||||||
INSERT INTO acl_permission VALUES (null, 2, 'marissa', 2);
|
INSERT INTO acl_permission VALUES (null, 2, 'rod', 2);
|
||||||
INSERT INTO acl_permission VALUES (null, 3, 'scott', 14);
|
INSERT INTO acl_permission VALUES (null, 3, 'scott', 14);
|
||||||
INSERT INTO acl_permission VALUES (null, 6, 'scott', 1);</programlisting></para>
|
INSERT INTO acl_permission VALUES (null, 6, 'scott', 1);</programlisting></para>
|
||||||
|
|
||||||
|
@ -6563,7 +6563,7 @@ END;
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
--- 1 ROLE_SUPERVISOR Administer
|
--- 1 ROLE_SUPERVISOR Administer
|
||||||
--- 2 ROLE_SUPERVISOR None (overrides parent #1)
|
--- 2 ROLE_SUPERVISOR None (overrides parent #1)
|
||||||
--- marissa Read
|
--- rod Read
|
||||||
--- 3 ROLE_SUPERVISOR Administer (from parent #1)
|
--- 3 ROLE_SUPERVISOR Administer (from parent #1)
|
||||||
--- scott Read, Write, Create
|
--- scott Read, Write, Create
|
||||||
--- 4 ROLE_SUPERVISOR Administer (from parent #1)
|
--- 4 ROLE_SUPERVISOR Administer (from parent #1)
|
||||||
|
@ -6675,8 +6675,8 @@ END;
|
||||||
|
|
||||||
<para>Authentication object as a String:
|
<para>Authentication object as a String:
|
||||||
org.springframework.security.adapters.PrincipalSpringSecurityUserToken@e9a7c2:
|
org.springframework.security.adapters.PrincipalSpringSecurityUserToken@e9a7c2:
|
||||||
Username: marissa; Password: [PROTECTED]; Authenticated: true;
|
Username: rod; Password: [PROTECTED]; Authenticated: true; Granted
|
||||||
Granted Authorities: ROLE_TELLER, ROLE_SUPERVISOR</para>
|
Authorities: ROLE_TELLER, ROLE_SUPERVISOR</para>
|
||||||
|
|
||||||
<para>Authentication object holds the following granted
|
<para>Authentication object holds the following granted
|
||||||
authorities:</para>
|
authorities:</para>
|
||||||
|
@ -6720,9 +6720,9 @@ END;
|
||||||
web services protocols. This demonstrates how to use Spring Security
|
web services protocols. This demonstrates how to use Spring Security
|
||||||
for authentication with Spring remoting protocols. To try this client,
|
for authentication with Spring remoting protocols. To try this client,
|
||||||
ensure your servlet container is still running the Contacts sample
|
ensure your servlet container is still running the Contacts sample
|
||||||
application, and then execute <literal>client marissa koala</literal>.
|
application, and then execute <literal>client rod koala</literal>. The
|
||||||
The command-line parameters respectively represent the username to
|
command-line parameters respectively represent the username to use,
|
||||||
use, and the password to use. Note that you may need to edit
|
and the password to use. Note that you may need to edit
|
||||||
<literal>client.properties</literal> to use a different target
|
<literal>client.properties</literal> to use a different target
|
||||||
URL.</para>
|
URL.</para>
|
||||||
|
|
||||||
|
|
|
@ -189,7 +189,7 @@ copy dist\petclinic.war %TOMCAT_HOME%\webapps
|
||||||
|
|
||||||
Redeploy your web application. Use the earlier process to do that. Be careful to
|
Redeploy your web application. Use the earlier process to do that. Be careful to
|
||||||
ensure that the old Petclinic WAR is replaced by the new Petclinic WAR in your
|
ensure that the old Petclinic WAR is replaced by the new Petclinic WAR in your
|
||||||
servlet container. Login as "marissa", who has ROLE_SUPERVISOR. You will be able to
|
servlet container. Login as "rod", who has ROLE_SUPERVISOR. You will be able to
|
||||||
then view a customer and add a visit. Logout, then login as anyone other than Marissa.
|
then view a customer and add a visit. Logout, then login as anyone other than Marissa.
|
||||||
You will receive an access denied error when you attempt to add a visit.
|
You will receive an access denied error when you attempt to add a visit.
|
||||||
|
|
||||||
|
|
|
@ -23,13 +23,13 @@ CREATE UNIQUE INDEX ix_auth_username ON authorities ( username, authority );
|
||||||
|
|
||||||
ALTER TABLE authorities ADD CONSTRAINT fk_authorities_users foreign key (username) REFERENCES users(username);
|
ALTER TABLE authorities ADD CONSTRAINT fk_authorities_users foreign key (username) REFERENCES users(username);
|
||||||
|
|
||||||
INSERT INTO users VALUES ('marissa', 'koala', true);
|
INSERT INTO users VALUES ('rod', 'koala', true);
|
||||||
INSERT INTO users VALUES ('dianne', 'emu', true);
|
INSERT INTO users VALUES ('dianne', 'emu', true);
|
||||||
INSERT INTO users VALUES ('scott', 'wombat', true);
|
INSERT INTO users VALUES ('scott', 'wombat', true);
|
||||||
INSERT INTO users VALUES ('peter', 'opal', false);
|
INSERT INTO users VALUES ('peter', 'opal', false);
|
||||||
|
|
||||||
INSERT INTO authorities VALUES ('marissa', 'ROLE_TELLER');
|
INSERT INTO authorities VALUES ('rod', 'ROLE_TELLER');
|
||||||
INSERT INTO authorities VALUES ('marissa', 'ROLE_SUPERVISOR');
|
INSERT INTO authorities VALUES ('rod', 'ROLE_SUPERVISOR');
|
||||||
INSERT INTO authorities VALUES ('dianne', 'ROLE_TELLER');
|
INSERT INTO authorities VALUES ('dianne', 'ROLE_TELLER');
|
||||||
INSERT INTO authorities VALUES ('scott', 'ROLE_TELLER');
|
INSERT INTO authorities VALUES ('scott', 'ROLE_TELLER');
|
||||||
INSERT INTO authorities VALUES ('peter', 'ROLE_TELLER');
|
INSERT INTO authorities VALUES ('peter', 'ROLE_TELLER');
|
||||||
|
@ -66,7 +66,7 @@ CREATE TABLE acl_permission (
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
--- 1 ROLE_SUPERVISOR Administer
|
--- 1 ROLE_SUPERVISOR Administer
|
||||||
--- 2 ROLE_SUPERVISOR None (overrides parent #1)
|
--- 2 ROLE_SUPERVISOR None (overrides parent #1)
|
||||||
--- marissa Read
|
--- rod Read
|
||||||
--- 3 ROLE_SUPERVISOR Administer (from parent #1)
|
--- 3 ROLE_SUPERVISOR Administer (from parent #1)
|
||||||
--- scott Read, Write, Create
|
--- scott Read, Write, Create
|
||||||
--- 4 ROLE_SUPERVISOR Administer (from parent #1)
|
--- 4 ROLE_SUPERVISOR Administer (from parent #1)
|
||||||
|
@ -85,7 +85,7 @@ INSERT INTO acl_object_identity VALUES (6, 'org.springframework.security.acl.Dom
|
||||||
|
|
||||||
INSERT INTO acl_permission VALUES (null, 1, 'ROLE_SUPERVISOR', 1);
|
INSERT INTO acl_permission VALUES (null, 1, 'ROLE_SUPERVISOR', 1);
|
||||||
INSERT INTO acl_permission VALUES (null, 2, 'ROLE_SUPERVISOR', 0);
|
INSERT INTO acl_permission VALUES (null, 2, 'ROLE_SUPERVISOR', 0);
|
||||||
INSERT INTO acl_permission VALUES (null, 2, 'marissa', 2);
|
INSERT INTO acl_permission VALUES (null, 2, 'rod', 2);
|
||||||
INSERT INTO acl_permission VALUES (null, 3, 'scott', 14);
|
INSERT INTO acl_permission VALUES (null, 3, 'scott', 14);
|
||||||
INSERT INTO acl_permission VALUES (null, 6, 'scott', 1);
|
INSERT INTO acl_permission VALUES (null, 6, 'scott', 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue