techprane/keycloak-authentication-and-authorization ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple Python app that shows how to do authentication and authorization with Keycloak.
I want a working example I can run locally, where a user can sign in through Keycloak, get routed based on whether they’re logged in, and see a basic protected page plus a page that only certain users can access. Keep it as small and clear as possible, with sensible defaults and easy setup instructions.
If anything needs current Keycloak details or best practices, look up the latest docs online and make the example work cleanly. Include whatever is needed in the main app file so I can test it right away.
Are you gonna build this?
make sure you review the code using coderabbit