API BASE BRANCH
Closes #128 (closed)
Proposed changes
- Implement HTTP Interceptor
- Adds the JWT token to any request, if available (when logged in, for example)
- No further actions needed to send jwt headers
- Implement guest login and usual login
IMPORTANT
This MR will change a basic functionality in the project. Merging this will delete the in-memory-data-service. This means that all the requests to the old, local db will crash unless it is already changed to the new api routes of the ARSnova backend
Use this branch as the base branch for further api changes!
If you want to work at any api issue, use THIS BRANCH as base branch! This branch will be merged along with all other api branches as soon as they are all ready!
ToDo
-
Add register route (old api) -
Add password reset route (old api) -
Add error handling to interceptor
Merge request reports
Activity
added 1 commit
- c9111fdf - Make login component use new guestLogin function in AuthenticationService
added WIP label
added 1 commit
- 0f5d15fc - Create empty httpHeaders to be able to send post request
@lmkm44 Fix this.
assigned to @lmkm44
HttpClient is finally present, but there is no request sent at guestLogin() in AuthenticationService. Therefore, no answer is transferred and login fails. @dndn43 Any ideas?AngularInMemoryWebApi catches all outgoing http requests. Therefore, the real arsnova backend was never reached.
Edited by Lukas Maximilian Kimpeladded 2 commits
mentioned in merge request !73 (closed)
added 58 commits
-
6c7842d3...35497aa3 - 41 commits from branch
master
- 6e0e9293 - Begin implementing api-connection
- a12187f3 - Implement usage of api to gain jwt token
- 9017cbc5 - Make login component use new guestLogin function in AuthenticationService
- ffa38f31 - Create empty httpHeaders to be able to send post request
- 9acc8eea - Update user to match api specification
- e5ae38e8 - Add AuthProvider enum
- ec77ea48 - Update user
- 4fe46fe0 - Update button to not submit the form
- fefbccd1 - Add AuthProvider
- 41203330 - Refactor AuthenticationService to return ClientAuthentication Observables
- cba9c60d - Refactor login component to use new features
- 5ca9daf6 - Remove unnecassary imports
- 30d613ce - Remove in-memory-data service
- d8ddff59 - Implement login api call
- f6936e3d - Implement Authentication Interceptor
- 07807587 - Make angular use http interceptor
- 6c95f5b4 - Clean up AuthenticationInterceptor
Toggle commit list-
6c7842d3...35497aa3 - 41 commits from branch
added ~1075 high priority and removed WIP labels