Akkoma using Mastodon as oauth2 provider

Greetings,

I’d like to use mastodon as Identity Provider to login into my akkoma instance.

I generated a token with

curl -d "client_name=akkoma&redirect_uris=https://akkoma.example.org/oauth/mastodon/" -X POST https://mastodon.example.org/api/v1/apps | jq

to create id client and client secret, that were puto into config/prod.secret.exs:

config :ueberauth, Ueberauth,
  providers: [
    # You will create routes matching the provider name:
    # - /auth/mastodon
    # - /auth/mastodon/callback
    mastodon: {Ueberauth.Strategy.Mastodon, [
      instance: "https://mastodon,example.,org",
      client_id: "xxxxxxxxxxxx",
      client_secret: "xxxxxxxxx",
      authorize_url: "https://mastodon.example.org/oauth/authorize",
      token_url: "https://mastodon.example.org/oauth/token",
      userinfo_url: "https://mastodon,example.org/api/v1/accounts/verify_credentials",
      scope: "read write follow"
    ]}

Then I issued ./docker-resources/manage.sh mix ecto.migrate.

Now I’m lost. Whato do I have to do? I see no “login with mastodon” button or kind of. How do I proceed?

https://docs.akkoma.dev/stable/configuration/cheatsheet/#oauth-consumer-mode

Says at the bottom that you need to configure the frontend to use tokens.

But I have not tried configuring this myself.

I added it, and actually it shows “login via oauth”.
Sadly it continues using local credentials instead of redirecting me to my mastodon instance’s authpage…

— EDIT —
My installation is via docker.

I didn’t get if I have also to modify my router.ex and add all the stuff from Soapbox / ueberauth_mastodon · GitLab .

Any help apreciated