* core: initial app entitlements Signed-off-by: Jens Langhammer <jens@goauthentik.io> * base off of pbm Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add tests and oauth2 Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add to proxy Signed-off-by: Jens Langhammer <jens@goauthentik.io> * rewrite to use bindings Signed-off-by: Jens Langhammer <jens@goauthentik.io> * make policy bindings form and list more customizable Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> * double fix Signed-off-by: Jens Langhammer <jens@goauthentik.io> * refine permissions Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add missing rbac modal to app entitlements Signed-off-by: Jens Langhammer <jens@goauthentik.io> * separate scope for app entitlements Signed-off-by: Jens Langhammer <jens@goauthentik.io> * include entitlements mapping in proxy Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add API validation to prevent policies from being bound to entitlements Signed-off-by: Jens Langhammer <jens@goauthentik.io> * make preview Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add initial docs Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix Signed-off-by: Jens Langhammer <jens@goauthentik.io> * remove duplicate docs Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
		
			
				
	
	
		
			22 lines
		
	
	
		
			1005 B
		
	
	
	
		
			Caddyfile
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			1005 B
		
	
	
	
		
			Caddyfile
		
	
	
	
	
	
http://localhost {
 | 
						|
    # 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://ak-test-outpost:9000
 | 
						|
 | 
						|
        # forward authentication to outpost
 | 
						|
        forward_auth http://ak-test-outpost: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-Entitlements 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 ak-whoami
 | 
						|
    }
 | 
						|
}
 |