Implement Password Grant Flow for Authentication and Enhance User Experience

- Introduced Password Grant Flow for user authentication, allowing direct login with email and password.
- Updated `useAuth` composable to manage login and logout processes, including Single Sign-Out from Cidaas.
- Enhanced user interface with a new `UserMenu` component displaying user information and logout functionality.
- Updated homepage to show personalized greetings for logged-in users and a login prompt for guests.
- Added logout confirmation page with a countdown redirect to the homepage.
- Documented the implementation details and future enhancements for OAuth2 flows in CLAUDE.md and other relevant documentation.
- Added test credentials and guidelines for automated testing in the new TESTING.md file.
This commit is contained in:
Bastian Masanek
2025-11-01 15:23:08 +01:00
parent 83ba708023
commit cc35636d1a
40 changed files with 1843 additions and 31 deletions

View File

@@ -51,7 +51,16 @@
"WebFetch(domain:articles.cidaas.de)",
"WebFetch(domain:pre-release-docs.cidaas.com)",
"mcp__playwright__browser_console_messages",
"WebFetch(domain:nuxt.com)"
"WebFetch(domain:nuxt.com)",
"mcp__playwright__browser_fill_form",
"Bash(/tmp/token_response.json)",
"Bash(__NEW_LINE__ cat /tmp/token_response.json)",
"Bash(TOKEN=\"eyJhbGciOiJSUzI1NiIsImtpZCI6Ijk3ZDdhNDBlLTgwNmEtNDdlZS04Y2I4LTBlZDU0YWIxYTA3YSJ9.eyJhdWQiOiI3YjdkMzQxYS04NGJiLTQ1YTItODI5Ny04NzVjMzAxOGFmN2YiLCJhdXRoX3RpbWUiOjE3NjE5NDcxNjksImV4cCI6MTc2NDUzOTE2OSwiaWF0IjoxNzYxOTQ3MTY5LCJpc3MiOiJodHRwczovL2V4cGVyaW1lbnRhLXN0YWdpbmcuY2lkYWFzLmRlIiwianRpIjoiZWI4NjQ1N2YtZTVmYS00YmEyLTg2MmEtMmRlZDkxNzkyNzQ1Iiwic2NvcGVzIjpbImNpZGFhczpyZWdpc3RlciIsImVtYWlsIiwib3BlbmlkIiwicHJvZmlsZSIsImNpZGFhczp1c2VyaW5mbyJdLCJzaWQiOiIxMzg3MWIzNy1mYzNkLTQyMzYtOTE5Yy02MmU4NjFhMjQ1YTIiLCJzdWIiOiJBTk9OWU1PVVMiLCJ1YV9oYXNoIjoiOWYxYzkzM2NmODVhZTFhYzdkZjdmMzMyYzYzZGIyODcifQ.j0WCP29vqzzuXH-weG1kD5BsNUlPGl2JNXTRFWtgCiC1KhZSIUzYfkzVeukFODd1VecfTlL8bFpzgFxlNmuWuibxYZZUJZZ6ZcdvkJLhsW1L0DGALR0GkSPEZWBGRF2CUYjPFKylKX1lOesv92XgxcQSeaxrSC54ydHqNIxPcx8S2gfxlBnHegTkpqHoWJ3vL1LNWeu1XtTG4ILk4UhVa85LQM4n5JTaXXd98US6fWBJNEM6CIKN0td_YPiiB2YhC6XxyHSLaoRvtwNeUNzY0rzuak5xFR7-CGXnXu8MSRcxsQRNFJJnYJsLr-MHvrot7jyB5O-F8eeoyd8xEteTnOPyBMXNNe2DH3yQMDurBaZ7wxTO99RcelbWdZoZBYHCdZlGr4krKkcmx68-HJOCKG3R7RPzNkD-GdrLXcbmVXNftVtAR_CHrJNZPtWCLElZrmtW1W72y3r8GfOjJKQ89wVrIVwetkEVFCMrg1QjWnDNJOWntwkLaZYaD5FhBtVr8_DnmgCOXcGp3a8FpUkIMUADdDqw-yx9uOXg7TCH3aUC9X1Xfr4X0WUlC75MqQy2zEcMetr66kVr6jBqog0B4vYOGV7y0akQfFjJW3mkgWdfPOGAuhJ2V99ptOVPUEPYKSkXBJicokbIMEvM2oHm1gy9QBvzyO8h7vt1Dir602o\")",
"Bash(__NEW_LINE__ curl -s -X POST 'https://experimenta-staging.cidaas.de/users-srv/user' )",
"WebFetch(domain:raw.githubusercontent.com)",
"WebFetch(domain:cidaas.github.io)",
"Bash(node check-user.mjs:*)",
"Bash(xargs kill:*)"
],
"deny": [],
"ask": []