/
resource.xml
39 lines (30 loc) · 2.65 KB
/
resource.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0"?>
<resource xmlns="http://www.wyona.org/yanel/1.0"
name="registration"
namespace="http://www.wyona.com/yanel/resource/1.0"
class="org.wyona.yanel.resources.registration.UserRegistrationResource"
>
<description>
User registration
</description>
<rtd>
<!-- Mandatory -->
<property name="fromEmail"/> <!-- For example 'noreply@wyona.com' -->
<!-- Optional -->
<property name="email-confirmation" default-value="true"/> <!-- INFO: Set to false if no email confirmation/activation should re required. -->
<property name="subject" default-value="Activate User Registration (sent by Yanel)"/> <!-- INFO: Subject of confirmation/activation email. -->
<property name="email-body-template-path"/> <!-- INFO: Optional body template path, e.g. '/registration-confirmation-email-template.txt' -->
<property name="groups"/> <!-- INFO: Comma separated list of group IDs, to which user shall be added automatically during registration -->
<property name="include-activation-link" default-value="false"/> <!-- WARN: Because of security reasons please do not enable this property for a productive environment, but only set to 'true' for development or a continuous integration environment! -->
<property name="send-notification-emails" default-value="true"/> <!-- INFO: In the case of a continuous integration environment one might want to set this property to 'false' -->
<property name="send-activation-successful-email" default-value="true"/> <!-- INFO: When 'send-notification-emails' is set to 'false', then the value of this parameter does not apply at all -->
<property name="hours-valid" default-value="24"/>
<property name="min-password-length" default-value="5"/>
<property name="max-password-length" default-value="15"/>
<property name="notify-administrator" default-value="false"/> <!-- INFO: If set to true, then email will be sent to administrator when user has activated/confirmed the account or rather the provided email address -->
<property name="administrator-email"/> <!-- INFO: If 'notify-administrator' is set to true, then this property also needs to be set! -->
<property name="administrator-confirmation-required" default-value="false"/> <!-- INFO: If set to true, then user only gets activated when administrator also confirms registration request -->
<!-- INFO: Also see src/resources/login/resource.xml and src/resources/redirect/resource-v1.0.1.xml -->
<property name="pre-auth-request-header"/> <!-- INFO: If set, e.g. 'SM_USER', then the HTTP header will be checked accordingly. Also see http://stackoverflow.com/questions/10148666/how-can-i-trust-that-the-siteminder-http-headers-havent-been-tampered-with -->
</rtd>
</resource>