unoverse 0.1.106 → 0.1.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/operator/infra/aws/main.tf +14 -2
- package/package.json +1 -1
|
@@ -438,6 +438,10 @@ resource "aws_cognito_user_pool" "pool" {
|
|
|
438
438
|
# is also simply the better destination: it redirects to Cognito itself, and the
|
|
439
439
|
# administrator ends up where they were trying to go rather than on a login screen with
|
|
440
440
|
# nowhere to land afterwards.
|
|
441
|
+
# SMS IS REQUIRED EVEN WHEN ONLY EMAIL IS USED. Cognito validates the whole template:
|
|
442
|
+
# omit sms_message and UpdateUserPool rejects it for an empty value that must be at
|
|
443
|
+
# least six characters. It must contain {username} and {####} or the API refuses it.
|
|
444
|
+
sms_message = "Your ${var.name} universe: {username}, temporary password {####}"
|
|
441
445
|
email_subject = "Your ${var.name} universe is ready"
|
|
442
446
|
email_message = <<-MSG
|
|
443
447
|
<p>Your universe is deployed, and this account administers it.</p>
|
|
@@ -499,8 +503,16 @@ resource "aws_cognito_user_pool_client" "spa" {
|
|
|
499
503
|
allowed_oauth_flows_user_pool_client = true
|
|
500
504
|
allowed_oauth_flows = ["code"]
|
|
501
505
|
allowed_oauth_scopes = ["openid", "email", "profile"]
|
|
502
|
-
|
|
503
|
-
|
|
506
|
+
# THE APP'S OWN ADDRESS IS ALWAYS ALLOWED. This took the list verbatim, so setting a
|
|
507
|
+
# domain moved Canvas to https://canvas.<domain> and Cognito kept refusing that redirect
|
|
508
|
+
# as unknown — a login that fails with "redirect_mismatch" on a deployment where every
|
|
509
|
+
# other part is correct, fixed by editing a list nobody thinks to look at.
|
|
510
|
+
#
|
|
511
|
+
# canvas_entry is the same expression the invitation email and the canvas_url output use,
|
|
512
|
+
# so the address a person is sent to is by construction an address they may return to.
|
|
513
|
+
# Anything else in the variable (localhost for dev, a second front end) is kept.
|
|
514
|
+
callback_urls = distinct(concat([local.canvas_entry], var.oauth_callback_urls))
|
|
515
|
+
logout_urls = distinct(concat([local.canvas_entry], var.oauth_callback_urls))
|
|
504
516
|
supported_identity_providers = ["COGNITO"]
|
|
505
517
|
}
|
|
506
518
|
|
package/package.json
CHANGED