-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add React frontend with authentication #649
Conversation
Since this wasn't merged yet, I would take the opportunity to squash the refactor commit with the first commit that you introduce the React app. Maybe changing the order will make it a bit easier to rebase:
Also adding a better message in the squash commit that describes better what it does, like the description of this pull request. |
config/permissions.php
Outdated
'/services/getProjectUserCustomerReportJsonService.php', | ||
//user details report: check any user | ||
'/viewUserDetails.php', | ||
'/services/getUserProjectCustomerReportJsonService.php' | ||
) | ||
); | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a commit just for the code styling changes? To avoid mixing it with the real changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm backing out any formatting changes for the moment, as they are distracting and not really necessary
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> --> |
These changes add a React frontend that will be the start of new pages in the application. OIDC authentication has been added as a context in the React app so that the app will have the user/token information everywhere - this makes it fairly straightforward to hit the new Python API with a bearer token.
Looks good to me, thanks! |
These changes add a React frontend that will be the start of new pages in the application. OIDC authentication has been added as a context in the React app so that the app will have the user/token information everywhere - this makes it fairly straightforward to hit the new Python API with a bearer token. The existing php login manager was also changed in order to handle OIDC authentication.
Example pages have been set up - both in the React app and the php app - showing how to use the token from the OIDC in an Authorization header as a bearer token. On the php side, it is
fastapiTest.php
and on the React side, it isDedications.jsx
.