在 Cognito 内置登录页面中显示用户名以外的内容
Display something else than username in Cognito Built-In Sign-In Page
在 AWS Cognito 中,username
是唯一的且无法更改,这就是我将其与内部自动生成的 ID 一起使用的原因。大多数 Cognito API 请求,如 adminGetUser
仅使用 username
作为用户标识符。
If your application does not require a username, you do not need to ask users to provide one. Your app can create a unique username for users in the background. This is useful if, for example, you want users to register and sign in with an email address and password.
一切正常,但 Cognito 内置登录页面出现问题:
此页面旨在供最终用户查看,它显示 username
,我将其用作内部 ID
内置登录页面 can be customized but only CSS and logo,我看不到任何显示 preferred_username
或 email
的选项,而不是 username
。
有办法吗?我的用例的解决方法?我是否以错误的方式使用 Cognito?
它终于可以与 preferred_username
一起使用了
唯一的是真正第一次 username
而不是preferred_username
可能是 AWS 错误
在 AWS Cognito 中,username
是唯一的且无法更改,这就是我将其与内部自动生成的 ID 一起使用的原因。大多数 Cognito API 请求,如 adminGetUser
仅使用 username
作为用户标识符。
If your application does not require a username, you do not need to ask users to provide one. Your app can create a unique username for users in the background. This is useful if, for example, you want users to register and sign in with an email address and password.
一切正常,但 Cognito 内置登录页面出现问题:
此页面旨在供最终用户查看,它显示 username
,我将其用作内部 ID
内置登录页面 can be customized but only CSS and logo,我看不到任何显示 preferred_username
或 email
的选项,而不是 username
。
有办法吗?我的用例的解决方法?我是否以错误的方式使用 Cognito?
它终于可以与 preferred_username
唯一的是真正第一次 username
而不是preferred_username
可能是 AWS 错误