Admin-fe most of the config page empty, with error 'can't access property 0, a.tuple is undefined'

I have a from-source set up of akkoma running with podman-compose and I’m trying to set up oauth login according to OAuth consumer mode with external OpenID connect provider with Paul Swartz / ueberauth_oidcc · GitLab in the documentation.

My config (prod.secret.exs) firstly goes like this:

config :pleroma, :frontend_configurations,
  pleroma_fe: %{
    loginMethod: "token"
  }
config :ueberauth_oidcc, :issuers, [
  %{name: :oidcc_issuer, issuer: "https://sso.gb0.dev"}
]

config :ueberauth, Ueberauth.Strategy.Oidcc,
  issuer: :oidcc_issuer,
  scopes: ["openid", "profile", "email"],
  client_id: System.get_env("OID_CLIENT_ID"),
  client_secret: System.get_env("OID_CLIENT_SECRET")

config :ueberauth, Ueberauth,
  providers: [
    oidc: {Ueberauth.Strategy.Oidcc, [uid_field: :email]}
  ]

After restarting akkoma successfully, these config didn’t take effect(akkoma-fe is not displaying login with token), with logs:

Metadata load failed for issuer https://sso.gb0.dev. Retrying in 4538 ms. Error Details: {:confi
guration_load_failed, {:invalid_config_property, {:alg_no_none, :authorization_signing_alg_values_supported}}}

and most of the features under ‘setting’ in the admin-fe became empty, with TypeError: can't access property 0, a.tuple is undefined logged in the console

After debugging, I found the root cause of the error is unexpected item returned by /api/v1/pleroma/admin/config (highlighted one):

Then I tried to comment out these config and restarted akkoma, the Metadata load failed error disappeared.

I also tried to change the config into:

config :pleroma, :frontend_configurations,
  pleroma_fe: %{
    loginMethod: "token"
  }
config :ueberauth, Ueberauth.Strategy.Oidcc,
  issuer: "https://sso.gb0.dev",
  scopes: ["openid", "profile", "email"],
  client_id: System.get_env("OID_CLIENT_ID"),
  client_secret: System.get_env("OID_CLIENT_SECRET")

config :ueberauth, Ueberauth,
  providers: [
    oidc: {Ueberauth.Strategy.Oidcc, [uid_field: :email]}
  ]
# omitted the  'config :ueberauth_oidcc, :issuers'

And restarted akkoma, , the Metadata load failed error also disappeared. but akkoma-fe is not displaying login with token and it still didn’t solve the main admin-fe problem.

I also tried to run mix pleroma.config dump to see if these problematic config exists, and it isn’t.

I then tried reinstalling admin-fe, resetting confg withmix pleroma.config reset and importing the config without config :ueberauth_oidcc, :issuers. They didn’t work either.

Now I ran out of the solution, what else can I do?

problem seems mysteriously solved :thinking:

1 Like