Skip to content

Commit

Permalink
chore: use the .example domain in placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Nov 20, 2024
1 parent a29751b commit cd398ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions canaille/backends/ldap/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def validate(cls, config):
formatted_name=f"canaille_{uuid.uuid4()}",
family_name=f"canaille_{uuid.uuid4()}",
user_name=f"canaille_{uuid.uuid4()}",
emails=f"canaille_{uuid.uuid4()}@mydomain.tld",
emails=f"canaille_{uuid.uuid4()}@mydomain.example",
password="correct horse battery staple",
)
Backend.instance.save(user)
Expand All @@ -145,7 +145,7 @@ def validate(cls, config):
cn=f"canaille_{uuid.uuid4()}",
family_name=f"canaille_{uuid.uuid4()}",
user_name=f"canaille_{uuid.uuid4()}",
emails=f"canaille_{uuid.uuid4()}@mydomain.tld",
emails=f"canaille_{uuid.uuid4()}@mydomain.example",
password="correct horse battery staple",
)
Backend.instance.save(user)
Expand Down
8 changes: 4 additions & 4 deletions canaille/config.sample.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SECRET_KEY = "change me before you go in production"

# The interface on which canaille will be served
# SERVER_NAME = "auth.mydomain.tld"
# SERVER_NAME = "auth.mydomain.example"
# PREFERRED_URL_SCHEME = "https"

[CANAILLE]
Expand Down Expand Up @@ -88,7 +88,7 @@ SECRET_KEY = "change me before you go in production"
# In certain special cases (example : questioning about password
# corruption), it is necessary to provide an administration contact
# email.
# ADMIN_EMAIL = "admin@mydomain.tld"
# ADMIN_EMAIL = "admin@mydomain.example"

# If :py:data:`True`, Canaille will check for password compromise on HIBP
# every time a new password is register.
Expand Down Expand Up @@ -238,7 +238,7 @@ WRITE = [
# PRIVATE_KEY = "..."
# PUBLIC_KEY = "..."
# The URI of the identity provider
# ISS = "https://auth.mydomain.tld"
# ISS = "https://auth.mydomain.example"
# The key type parameter
# KTY = "RSA"
# The key algorithm
Expand Down Expand Up @@ -272,4 +272,4 @@ WRITE = [
# SSL = false
# LOGIN = ""
# PASSWORD = ""
# FROM_ADDR = "admin@mydomain.tld"
# FROM_ADDR = "admin@mydomain.example"
14 changes: 7 additions & 7 deletions canaille/oidc/endpoints/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ClientAddForm(Form):
wtforms.EmailField(
_("Contacts"),
validators=[wtforms.validators.Optional(), email_validator],
render_kw={"placeholder": "admin@mydomain.tld"},
render_kw={"placeholder": "admin@mydomain.example"},
),
min_entries=1,
validators=[unique_values],
Expand All @@ -45,7 +45,7 @@ class ClientAddForm(Form):
wtforms.validators.DataRequired(),
is_uri,
],
render_kw={"placeholder": "https://mydomain.tld"},
render_kw={"placeholder": "https://mydomain.example"},
)
redirect_uris = wtforms.FieldList(
wtforms.URLField(
Expand All @@ -54,7 +54,7 @@ class ClientAddForm(Form):
wtforms.validators.DataRequired(),
is_uri,
],
render_kw={"placeholder": "https://mydomain.tld/callback"},
render_kw={"placeholder": "https://mydomain.example/callback"},
),
min_entries=1,
validators=[unique_values],
Expand All @@ -67,7 +67,7 @@ class ClientAddForm(Form):
is_uri,
],
render_kw={
"placeholder": "https://mydomain.tld/you-have-been-disconnected"
"placeholder": "https://mydomain.example/you-have-been-disconnected"
},
),
min_entries=1,
Expand Down Expand Up @@ -120,23 +120,23 @@ class ClientAddForm(Form):
wtforms.validators.Optional(),
is_uri,
],
render_kw={"placeholder": "https://mydomain.tld/logo.png"},
render_kw={"placeholder": "https://mydomain.example/logo.png"},
)
tos_uri = wtforms.URLField(
_("Terms of service URI"),
validators=[
wtforms.validators.Optional(),
is_uri,
],
render_kw={"placeholder": "https://mydomain.tld/tos.html"},
render_kw={"placeholder": "https://mydomain.example/tos.html"},
)
policy_uri = wtforms.URLField(
_("Policy URI"),
validators=[
wtforms.validators.Optional(),
is_uri,
],
render_kw={"placeholder": "https://mydomain.tld/policy.html"},
render_kw={"placeholder": "https://mydomain.example/policy.html"},
)
software_id = wtforms.StringField(
_("Software ID"),
Expand Down

0 comments on commit cd398ff

Please sign in to comment.