caddy-security icon indicating copy to clipboard operation
caddy-security copied to clipboard

feature: auto-redirect to IDP when only one exists

Open clintharrison opened this issue 3 years ago • 2 comments

I'm using caddy-security with a single authn backend.

Instead of presenting a login page with a single button, it'd be great if /login redirected there immediately, since that's what the user will do anyway.

I suppose we could add a Caddyfile directive so this is opt-in behavior :)

clintharrison avatar Jul 04 '22 00:07 clintharrison

@clintharrison , have you looked into adding custom javascript to do the automatic redirect? https://authp.github.io/docs/authenticate/ui-features#javascript

greenpau avatar Jul 04 '22 02:07 greenpau

This feature does make sense. Will add it next time I do the refactoring of UI

greenpau avatar Jul 04 '22 02:07 greenpau