En el plugin:
# frozen_string_literal: true
# name: discourse-oauth2-basic
# about: Allows users to login to your forum using a basic OAuth2 provider.
# meta_topic_id: 33879
# version: 0.3
# authors: Robin Ward
# url: https://github.com/discourse/discourse-oauth2-basic
enabled_site_setting :oauth2_enabled
require_relative "lib/omniauth/strategies/oauth2_basic"
require_relative "lib/oauth2_faraday_formatter"
require_relative "lib/oauth2_basic_authenticator"
# You should use this register if you want to add custom paths to traverse the user details JSON.
# We'll store the value in the user associated account's extra attribute hash using the full path as the key.
DiscoursePluginRegistry.define_filtered_register :oauth2_basic_additional_json_paths
# After authentication, we'll use this to confirm that the registered json paths are fulfilled, or display an error.
This file has been truncated. show original
Se utiliza este código:
result = Auth::Result.new
result.extra_data = “some value”
¿Dónde se guarda ese valor de extra_data? He revisado varias tablas, pero aún no lo he encontrado. Pensé en consultar aquí antes de tener que recorrerlas todas.
Gracias
Normally extra_data will be carried until the new users complete their signup process. Then it will be used here .
Thanks, that helped me find what I was looking for. The data I was looking for gets stored in the plugin_store_rows table.