docbrown/app/lib/constants/settings/authentication.rb
Michael Kohl 5406b0576e
Split Settings::Authentication from SiteConfig (#13095)
* Split Settings::Authentication from SiteConfig

* Move specs

* Sort fields

* Update settings usages

* Update recaptcha usages

* Add data update script

* Update spec

* Rename SiteConfigParams concern

* Fixes, new route, new controller

* Controller and service refactoring

* More controller and service updates

* Spec updates

* More spec fixes

* Move file

* Fix FeedbackMessagesController

* Update admin/configs_spec

* Fix remaining specs in admin/configs_spec

* Fix configs API

* Formatting

* Clean up old service object

* Various fixes

* Update DUS

* Add model argument to admin_config_label

* Fix key name

* Fix specs

* Add distinct request caches for settings classes

* Fix e2e tests

* Fix remaining system spec

* Make DUS idempotent

* Move routes block

* Cleanup

* Switch to ActiveSupport::CurrentAttributes

* Pinned rails-settings-cached

* Update e2e test

* Update lib/data_update_scripts/20210316091354_move_authentication_settings.rb

Co-authored-by: rhymes <rhymes@hey.com>

* Add guard to DUS

* Temporarily re-add two SiteConfig fields

* Fix config show view

Co-authored-by: rhymes <rhymes@hey.com>
2021-04-12 09:41:09 +02:00

82 lines
3.1 KiB
Ruby

module Constants
module Settings
module Authentication
DETAILS = {
allowed_registration_email_domains: {
description: "Restrict registration to only certain emails? (comma-separated list)",
placeholder: "dev.to, forem.com, codenewbie.org"
},
apple_client_id: {
description:
"The \"App Bundle\" code for the Authentication Service configured in the Apple Developer Portal",
placeholder: "com.example.app"
},
apple_team_id: {
description:
"The \"Team ID\" of your Apple Developer Account",
placeholder: ""
},
apple_key_id: {
description:
"The \"Key ID\" from the Authentication Service configured in the Apple Developer Portal",
placeholder: ""
},
apple_pem: {
description:
"The \"PEM\" key from the Authentication Service configured in the Apple Developer Portal",
placeholder: "-----BEGIN PRIVATE KEY-----\nMIGTAQrux...QPe8Yb\n-----END PRIVATE KEY-----\\n"
},
display_email_domain_allow_list_publicly: {
description: "Do you want to display the list of allowed domains, or keep it private?"
},
facebook_key: {
description:
"The \"App ID\" portion of the Basic Settings section of the App page on the Facebook Developer Portal",
placeholder: ""
},
facebook_secret: {
description:
"The \"App Secret\" portion of the Basic Settings section of the App page on the Facebook Developer Portal",
placeholder: ""
},
github_key: {
description: "The \"Client ID\" portion of the GitHub Oauth Apps portal",
placeholder: ""
},
github_secret: {
description: "The \"Client Secret\" portion of the GitHub Oauth Apps portal",
placeholder: ""
},
invite_only_mode: {
description: "Only users invited by email can join this community.",
placeholder: ""
},
recaptcha_site_key: {
description: "Add the site key for Google reCAPTCHA, which is used for reporting abuse",
placeholder: "What is the Google reCAPTCHA site key?"
},
recaptcha_secret_key: {
description: "Add the secret key for Google reCAPTCHA, which is used for reporting abuse",
placeholder: "What is the Google reCAPTCHA secret key?"
},
require_captcha_for_email_password_registration: {
description: "People will be required to fill out a captcha when
they're creating a new account in your community",
placeholder: ""
},
twitter_key: {
description: "The \"API key\" portion of consumer keys in the Twitter developer portal.",
placeholder: ""
},
twitter_secret: {
description: "The \"API secret key\" portion of consumer keys in the Twitter developer portal.",
placeholder: ""
},
providers: {
description: "How can users sign in?",
placeholder: ""
}
}.freeze
end
end
end