rafiki
rafiki copied to clipboard
feat(auth): mock idp initial commit
Changes proposed in this pull request
- create a mock IDP for testing purposes
- sub-tasks:
- [X] basic UI
- [x] dynamic configuration
- [x] scaffold API calls
- [x] implement API calls
- [x] clean up UI organization
- [x] styling
- note: Not using AdonisJS because it doesn't seem to support async client updates (will discuss)
Context
- fixes #379
- fixes #488
Checklist
- [x] Related issues linked using
fixes #number - [ ] Tests added/updated
- [ ] Documentation added
- [ ] Make sure that all checks pass
@dclipp after our 1:1, here is what I think this should do:
- a grant is automatically seeded in pending state when the stack is fired up via docker compose
- when I navigate to localhost:3030 (location of your app), this grant's
interactIdandnonceare the default values in the form (but I could also input other info if I had e.g. done a grant request via postman) - when I click "Begin step", I'm redirected to a consent screen (under the hood, the app does the get request to get the grant details)
- I accept or reject on the consent screen (under the hood, the post to the auth server happens)
- I'm redirected to the initial page that shows the grant that was issued or the rejection message
Let me know if that makes sense to you