Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #53
Changes
<RequireLogin />component to<KettingProvider />onSuccesshelperNotes
Steps so far…
Made sure
KettingProvideris encapsulatingRequireLoginMade sure
RequireLoginencapsulatesRoutesCould not use
configfound in storysuiteso I hard coded the
tokenandauthorizeEndpointsparamThis wasn’t so difficult as the config just produced the a12nserver’s uri
Added a
onSuccessthat redirects the user to the home page (‘/‘)When hard coding the
cliendId, I realized I needed to create the app in a12n get the clientIdMade tt-app in a12n
Made sure to add http://localhost:8902/ as a valid
redirectUri(otherwise would not work by default)The front end would give a ‘Not Authorized’ page when running an ‘authenticated backend’.
After implementing the steps above, I am no longer getting a ‘Not Authorized’ page
Instead I am getting the home page, or whatever page I was on.
this works, but I expected there to be a login process for the FE as well,
Just as there is one for the BE currently.
If I understand correctly, I may have reached the end of what I can do for this PR.
Currently there is no ‘access control’ in the TimeTracker,
I’m assuming I need to implement that before I get the login screen as expected on the FE.