Using oauth2 directive that comes with non-standard module

I’ve run into a separate issue when creating an oauth2 directive – “directive ‘oauth2’ is not ordered”.

Sadly, it doesn’t look like there’s a way for me to inject oauth2 right there alongside basicauth in the directiveOrder list.

That’s what the order global option is for: Global options (Caddyfile) — Caddy Documentation

{
    order oauth2 after basicauth
}

Or something like that.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.