feat: Remove AuthModel to only use OAuthModel #103
Merged
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.
About this PR
Linked to lenra-io/server#399
Following the issue referenced above, I have done a rework on the authentication process on client-common. This rework involves removing the
AuthModel
which was an old class used for handling authentication. I regrouped everything in theOAuthModel
which is the new Model for handling authentication on Lenra. This also simplifies the authentication checks on thebackoffice
as you can see on the following pull request : lenra-io/backoffice#123.How to test these changes
You can test these changes by using the backoffice's PR referenced above and using this branch as the client-common dependency in the backoffice. Then, run the latest server version and make sure that you have created an oauth client using the oauth documentation in the
docs
folder of the server.Checklist
I included unit tests that cover my changes
I added/updated the documentation about my changes