121 Commits

Author SHA1 Message Date
Olivier Lamy
8d07c8bf70 as user managers are chain we must check the cause too
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1467971 13f79535-47bb-0310-9956-ffa450edef68
2013-04-15 12:37:12 +00:00
Olivier Lamy
75b4882d44 use a more traditionnal naming convention with #default
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1452590 13f79535-47bb-0310-9956-ffa450edef68
2013-03-04 23:14:35 +00:00
Olivier Lamy
b1238c6b87 a bit of debug to help debug was/Chris issue
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1450732 13f79535-47bb-0310-9956-ffa450edef68
2013-02-27 11:00:55 +00:00
Olivier Lamy
8cdee9cde3 force bean name to prevent failure in case multiple implementations
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1442628 13f79535-47bb-0310-9956-ffa450edef68
2013-02-05 15:39:43 +00:00
Olivier Lamy
b949895ed7 more unit tests
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1441488 13f79535-47bb-0310-9956-ffa450edef68
2013-02-01 15:30:59 +00:00
Olivier Lamy
75fa37a3de add more tests
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1441487 13f79535-47bb-0310-9956-ffa450edef68
2013-02-01 15:30:35 +00:00
Olivier Lamy
88be2c7375 really add test !
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1441486 13f79535-47bb-0310-9956-ffa450edef68
2013-02-01 15:30:18 +00:00
Olivier Lamy
181ce6f02c add unit test for LdapGroupMappingService
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1441485 13f79535-47bb-0310-9956-ffa450edef68
2013-02-01 15:29:58 +00:00
Olivier Lamy
93b6a7718d cleanup interface and add default implementation
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1440551 13f79535-47bb-0310-9956-ffa450edef68
2013-01-30 17:46:05 +00:00
Olivier Lamy
cf426b9c63 add timing here
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1435205 13f79535-47bb-0310-9956-ffa450edef68
2013-01-18 15:55:06 +00:00
Olivier Lamy
17f4210d6c use userManager#configurable rather than userManager#cached
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433462 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 15:40:02 +00:00
Olivier Lamy
843977e157 use a rbacManager#default rather than hardcoded impl to ease alias usage
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433460 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 15:39:45 +00:00
Olivier Lamy
066e356045 [MRM-1736] map roles to ldap groups
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1430601 13f79535-47bb-0310-9956-ffa450edef68
2013-01-08 22:46:30 +00:00
Olivier Lamy
63956ea49a use a generic name to be able to override it using spring alias
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1429032 13f79535-47bb-0310-9956-ffa450edef68
2013-01-04 18:59:27 +00:00
Olivier Lamy
e1c0623d31 snippet for get rest user service
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1428292 13f79535-47bb-0310-9956-ffa450edef68
2013-01-03 11:29:22 +00:00
Olivier Lamy
4dc5b15eee fix bean naming
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1427884 13f79535-47bb-0310-9956-ffa450edef68
2013-01-02 18:05:45 +00:00
Olivier Lamy
8b538cf1ad avoid toString of String
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1427139 13f79535-47bb-0310-9956-ffa450edef68
2012-12-31 14:34:21 +00:00
Olivier Lamy
a522ed98fb NPE free
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1424973 13f79535-47bb-0310-9956-ffa450edef68
2012-12-21 15:32:24 +00:00
Olivier Lamy
dc712ce923 isLogged return the user
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1424972 13f79535-47bb-0310-9956-ffa450edef68
2012-12-21 15:32:09 +00:00
Olivier Lamy
856e7d19ba for security reasons prevent displaying messages such "Password is Invalid for user admin"
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1423699 13f79535-47bb-0310-9956-ffa450edef68
2012-12-18 22:43:52 +00:00
Olivier Lamy
30c1cfa2a4 UserManagerException is now a checked Exception
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1419568 13f79535-47bb-0310-9956-ffa450edef68
2012-12-10 16:34:46 +00:00
Olivier Lamy
5c55300800 userConfiguration#default bean must be know declared tru an alias to avoid duplicate bean ids
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1417908 13f79535-47bb-0310-9956-ffa450edef68
2012-12-06 14:31:05 +00:00
Olivier Lamy
2907ffa101 use a more classic name for this bean userConfiguration#default
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1417782 13f79535-47bb-0310-9956-ffa450edef68
2012-12-06 09:09:45 +00:00
Olivier Lamy
eef9c73382 start moving configuration keys to a constant class
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1417395 13f79535-47bb-0310-9956-ffa450edef68
2012-12-05 12:56:03 +00:00
Olivier Lamy
5d166ecce8 rid of plexus utils usage
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1417083 13f79535-47bb-0310-9956-ffa450edef68
2012-12-04 18:19:03 +00:00
Olivier Lamy
75af5e0fec authenticator do not return key so add a message field
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1416991 13f79535-47bb-0310-9956-ffa450edef68
2012-12-04 15:26:55 +00:00
Olivier Lamy
dd93a29b34 if any exception must be returned in rest response
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1416990 13f79535-47bb-0310-9956-ffa450edef68
2012-12-04 15:26:25 +00:00
Olivier Lamy
86657b2894 force an implementation name to prevent issue when more than one available
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1416075 13f79535-47bb-0310-9956-ffa450edef68
2012-12-01 23:09:36 +00:00
Olivier Lamy
8bf7b14a83 extract an interface to be able to override the impl in archiva
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1414452 13f79535-47bb-0310-9956-ffa450edef68
2012-11-27 22:50:13 +00:00
Olivier Lamy
b23cf34cc0 rename UserConfiguration to DefaultUserConfiguration to be able to extract an interface
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1414451 13f79535-47bb-0310-9956-ffa450edef68
2012-11-27 22:48:18 +00:00
Olivier Lamy
daeecfa8a0 [MRM-1708] When using LDAP, users can still edit their details upon login.
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1412793 13f79535-47bb-0310-9956-ffa450edef68
2012-11-23 09:28:48 +00:00
Olivier Lamy
318e1f0ea6 remove this ugly Object getPrincipal
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1412684 13f79535-47bb-0310-9956-ffa450edef68
2012-11-22 21:55:21 +00:00
Olivier Lamy
663473b58d storing User in AuthenticationResult to avoid searching it again
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1412362 13f79535-47bb-0310-9956-ffa450edef68
2012-11-21 23:35:09 +00:00
Olivier Lamy
61439213d3 add log4j2-test.xml file
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1412340 13f79535-47bb-0310-9956-ffa450edef68
2012-11-21 22:31:16 +00:00
Olivier Lamy
ad6312856b use log4j2
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1412339 13f79535-47bb-0310-9956-ffa450edef68
2012-11-21 22:31:00 +00:00
Olivier Lamy
0ada359748 missing license header
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1412337 13f79535-47bb-0310-9956-ffa450edef68
2012-11-21 22:30:29 +00:00
Olivier Lamy
3e9447142e add configuration files for test to prevent unit failures
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1412336 13f79535-47bb-0310-9956-ffa450edef68
2012-11-21 22:30:16 +00:00
Olivier Lamy
a9ae52e2ac remove some system.out
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1412335 13f79535-47bb-0310-9956-ffa450edef68
2012-11-21 22:29:59 +00:00
Olivier Lamy
3ba2af56dc add some debug
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1393805 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 22:46:26 +00:00
Olivier Lamy
6e3294a072 add test for lock/unlock user rest methods
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1386870 13f79535-47bb-0310-9956-ffa450edef68
2012-09-17 22:09:31 +00:00
Olivier Lamy
71fc853d38 fix locking user rest method
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1386869 13f79535-47bb-0310-9956-ffa450edef68
2012-09-17 22:09:11 +00:00
Olivier Lamy
56a556040f prevent spamming
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1357914 13f79535-47bb-0310-9956-ffa450edef68
2012-07-05 21:04:22 +00:00
Olivier Lamy
8d0946d1a0 remove @version $Id$
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1357910 13f79535-47bb-0310-9956-ffa450edef68
2012-07-05 21:03:45 +00:00
Olivier Lamy
b758ce9c9e use tomcat rather than jetty for unit tests
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1350797 13f79535-47bb-0310-9956-ffa450edef68
2012-06-15 21:08:53 +00:00
Olivier Lamy
7a1f384418 change signature to be able to pass the application url for reset password.
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1342645 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 14:38:09 +00:00
Olivier Lamy
0e9c6a219c test passing no url still work
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1342594 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 12:32:40 +00:00
Olivier Lamy
532458aac6 change signature to be able to pass the application url
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1342592 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 12:32:07 +00:00
Olivier Lamy
17800b2d55 @since 1.5 is now @since 2.0
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1324841 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 16:16:57 +00:00
Olivier Lamy
5d696d5de2 use POST rather than GET for login to prevent password being in http logs.
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1324829 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 15:58:59 +00:00
Olivier Lamy
14369f149d spring-cache move to o.a.a namespace
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1324625 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 08:24:26 +00:00