Help us learn about your current experience with the documentation. Take the survey.

通过集成认证创建的用户生成的密码

  • Tier: Free, Premium, Ultimate
  • Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated

GitLab 允许用户通过与外部身份验证和授权提供商集成来设置账户。

这些身份验证方法不需要用户为账户明确创建密码。 但是,为了保持数据一致性,GitLab 要求所有用户账户都必须有密码。

对于此类账户,我们使用 Devise gem 提供的 friendly_token 方法生成一个随机、唯一且安全的密码,并在注册时将其设置为账户密码。

生成的密码长度为 128 个字符