mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
add option to override user attributes from SSO payload
add an external_username attribute for username from SSO payload repair the field name in SingleSignOnRecord migration move setting of external_username for sso to controller add settings toggle to override username/email from SSO payload fix changing of external username after override toggle complete tests and logic for sso override add some extra context to username override option add external_email and external_name to single sign on record add setting for name override from SSO payload complete override with stored external_email and external_name add missing checks to tests remove an unneeded describe block break up a monster method for single sign on fixes for sso attribute override after failed tests
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddExternalUsernameToSingleSignOnRecord < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :single_sign_on_records, :external_username, :string
|
||||
end
|
||||
end
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class AddExternalEmailAndExternalNameToSingleSignOnRecord < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :single_sign_on_records, :external_email, :string
|
||||
add_column :single_sign_on_records, :external_name, :string
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user