bored-coat-26363
07/05/2022, 7:11 PMrecovery/valid
templates, I haven’t found a way to do it in the web interface.
So I saw some references here on slack, https://ory-community.slack.com/archives/C02MR4DEEGH/p1656941173353769
My end game is:
• I have a template in S3 (email.body.gotmpl
)
• I want to change the from name (New From Name
)
• Do I need to set plaintext?
ory patch project 218f84c4-ee48-4710-b73f-xxxxxxxxxxxxxxxx \
--add '/services/identity/config/templates/recovery/valid={"from_name": "New From Name"}'
I tried patching and the result is:
The request was malformed or contained invalid parameters
Unable to apply JSON Patch: add operation does not apply: doc is missing path: "/services/identity/config/templates/recovery/valid": missing value
I have downloaded the whole config file from the Cloud,
But I am not sure how to format the new fields.
Should I look here https://www.ory.sh/docs/kratos/concepts/email-sms#sender-address-and-template-customization ?
Or here https://www.ory.sh/docs/cli/ory-update-project#examplesbored-coat-26363
07/05/2022, 7:24 PMproud-plumber-24205
07/06/2022, 6:39 AMproud-plumber-24205
07/06/2022, 6:41 AMproud-plumber-24205
07/06/2022, 6:41 AMproud-plumber-24205
07/06/2022, 6:43 AM'/services/identity/config/templates/recovery/valid=
this path is incorrect since valid
here is an object containing the following structure:
valid:
email:
body:
# plaintext and html are required when overriding the body
html: <https://some-remote-resource/gotmpl>
plaintext: <base64://SGV5IHlvdSBkZWNvZGVkIG1lIDop>
# optional
subject: <file://some-file/subject.gotmpl>
bored-coat-26363
07/06/2022, 8:57 AM'/services/identity/config/templates/recovery/valid=
But it looks like the cloud config has actually:
/services/identity/config/courier/templates/recovery/valid=
Is this correct?
2.
I tried with the path with ``courier`` (the first one didn’t work at all), annd When pushing this:
{
"email": {
"body": {
"html": "<https://aaaa-resources.s3.amazonaws.com/courier-templates/recovery/valid/email.body.gotmpl>",
"plaintext": "<base64://xxxxx>"
},
"subject": "<base64://xxxxx>"
}
}
I get the error:
The request was malformed or contained invalid parameters
URL `<https://ory-public-resources.s3.amazonaws.com>` is not allowed for `courier.templates.recovery.valid.email.body.html`.
🤷bored-coat-26363
07/06/2022, 9:06 AMproud-plumber-24205
07/06/2022, 9:06 AMproud-plumber-24205
07/06/2022, 9:06 AMproud-plumber-24205
07/06/2022, 9:07 AMproud-plumber-24205
07/06/2022, 9:10 AMelegant-airline-89652
07/06/2022, 10:43 AMproud-plumber-24205
07/06/2022, 10:43 AMproud-plumber-24205
07/06/2022, 10:44 AMelegant-airline-89652
07/06/2022, 10:47 AM