Rebranding from passport to forem account (#16754)

This commit is contained in:
Fernando Valverde 2022-03-09 10:03:16 -06:00 committed by GitHub
parent 987c0a07a2
commit 06cec96324
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ module Authentication
module Providers
class Forem < Provider
OFFICIAL_NAME = "Forem".freeze
DOMAIN_URL = ApplicationConfig["PASSPORT_OAUTH_URL"] || "https://passport.forem.com".freeze
DOMAIN_URL = ApplicationConfig["FOREM_OAUTH_URL"] || "https://account.forem.com".freeze
SETTINGS_URL = "#{DOMAIN_URL}/oauth/authorized_applications".freeze
def new_user_data

View file

@ -6,7 +6,7 @@ module OmniAuth
option :name, :forem
option :client_options, {
site: ApplicationConfig["PASSPORT_OAUTH_URL"] || "https://passport.forem.com".freeze,
site: ApplicationConfig["FOREM_OAUTH_URL"] || "https://account.forem.com".freeze,
authorize_url: "/oauth/authorize"
}