You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
app.domain.tld {
# directive execution order is only as stated if enclosed with route.
route {
# always forward outpost path to actual outpost
reverse_proxy /outpost.goauthentik.io/* https://sso.domain.tld {
header_up Host {http.reverse_proxy.upstream.hostport}
}
# forward authentication to outpost
forward_auth http://authentik:9000 {
uri /outpost.goauthentik.io/auth/caddy
# capitalization of the headers is important, otherwise they will be empty
copy_headers X-Authentik-Username X-Authentik-Groups X-Authentik-Email X-Authentik-Name X-Authentik-Uid X-Authentik-Jwt X-Authentik-Meta-Jwks X-Authentik-Meta-Outpost X-Authentik-Meta-Provider X-Authentik-Meta-App X-Authentik-Meta-Version
# optional, in this config trust all private ranges, should probably be set to the outposts IP
trusted_proxies private_ranges
}
# actual site configuration below, for example
reverse_proxy 100.111.126.34:8080
}
}
And here is an example of the configuration that I edited and succeeded in logging in:
app.domain.tld {
# always forward outpost path to actual outpost
reverse_proxy /outpost.goauthentik.io/* https://sso.domain.tld {
header_up Host {http.reverse_proxy.upstream.hostport}
}
# forward authentication to outpost
forward_auth http://authentik-server:9000 {
uri /outpost.goauthentik.io/auth/caddy
# capitalization of the headers is important, otherwise they will be empty
copy_headers X-Authentik-Username X-Authentik-Groups X-Authentik-Email X-Authentik-Name X-Authentik-Uid X-Authentik-Jwt X-Authentik-Meta-Jwks X-Authentik-Meta-Outpost X-Authentik-Meta-Provider X-Authentik-Meta-App X-Authentik-Meta-Version
# optional, in this config trust all private ranges, should probably be set to the outposts IP
trusted_proxies private_ranges
}
# actual site configuration below, for example
reverse_proxy 100.111.126.34:8080
}
I deleted the route and everything ran normally. But I'm not sure if there will be any security issues or not after deleting that route.
Relevant info
Maybe this is relevant. I set up authentik with caddy docker with the following config:
Additional context
Is there a setup that is missing or is there additional information that I need to add? And for additional information, please let me know how to obtain it.
The text was updated successfully, but these errors were encountered:
Forgot to mention, here the config that I successfully login with forward_auth without removing route
app.domain.tld {
# directive execution order is only as stated if enclosed with route.
route {
# always forward outpost path to actual outpost
reverse_proxy /outpost.goauthentik.io/* http://authentik:9000 {
header_up Host {http.reverse_proxy.upstream.hostport}
}
# forward authentication to outpost
forward_auth http://authentik:9000 {
uri /outpost.goauthentik.io/auth/caddy
# capitalization of the headers is important, otherwise they will be empty
copy_headers X-Authentik-Username X-Authentik-Groups X-Authentik-Email X-Authentik-Name X-Authentik-Uid X-Authentik-Jwt X-Authentik-Meta-Jwks X-Authentik-Meta-Outpost X-Authentik-Meta-Provider X-Authentik-Meta-App X-Authentik-Meta-Version
# optional, in this config trust all private ranges, should probably be set to the outposts IP
trusted_proxies private_ranges
}
# actual site configuration below, for example
reverse_proxy 100.111.126.34:8080
}
}
Describe your question
I created a provider using the wizard.
Name: Mailu
Slug: mailu
Name: Mailu
Authorization flow: default-provider-authorization-explicit-consent (Authorize Application)
External host: https://app.domain.tld
Example for the Authentik domain https://sso.domain.tld.
The problem I encountered is that if I follow the example from Authentik at https://docs.goauthentik.io/docs/add-secure-apps/providers/proxy/server_caddy , I always get an error. Here is an example of the error configuration:
And here is an example of the configuration that I edited and succeeded in logging in:
I deleted the route and everything ran normally. But I'm not sure if there will be any security issues or not after deleting that route.
Relevant info
Maybe this is relevant. I set up authentik with caddy docker with the following config:
Screenshots
![Image](https://private-user-images.githubusercontent.com/72237814/409387110-5756f069-bddc-4d7b-9671-b6ce3c3cc068.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0ODYzNzYsIm5iZiI6MTczOTQ4NjA3NiwicGF0aCI6Ii83MjIzNzgxNC80MDkzODcxMTAtNTc1NmYwNjktYmRkYy00ZDdiLTk2NzEtYjZjZTNjM2NjMDY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDIyMzQzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyMGI3Nzc3N2Q2OTU4OTZkYmNhN2JjZWI0MGRlZTU2YzU1MzFlOGI2MjZhYWQ0MmZhODY3ZjQzYjk3NWJjOGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.fVOdCQnlraPsjYSSk1TAb4JHwUhJXwzFGBpXXjBaH0E)
Here's a screenshot when the error occurred.
Version and Deployment (please complete the following information):
Additional context
Is there a setup that is missing or is there additional information that I need to add? And for additional information, please let me know how to obtain it.
The text was updated successfully, but these errors were encountered: