Comments (2)
- L'application pourrait utiliser une clef qu'elle passera à l'API au lieu d'un token?
- L'application pourrait utiliser une clef au lieu d'un login/password pour recevoir un token?
Fred aime bien la deuxième version parce qu'elle demande moins de changement et lui parait plus sécure que la première.
from survip-webapi.
- supporter ça implicitement dans l'ApiClient.
- Lorsqu'on vient pour faire une requête, on vérifie si on a les tokens.
- Si ce n'est pas le cas, on utilise l'AuthentificationService pour se connecter avec le secretKey et récupérer le token.
- Si on a pas de secretKey ou que l'API nous retourne un 401 lors d'authentification, on throw une exception.
- Si on a une secretKey et que l'API nous retourne un 200 avec les tokens, on set les tokens dans le singleton de configuration, puis on procède avec la requête.
Il faut donc ajouter :
- Dans l'API Client:
- Une nouvelle exception du genre InvalidCredentialApiException
- Un service d'authentification qui sera appelé automatiquement par BaseSecureService.
- Dans l'API Prévention :
- Un nouvelle façon de se connecter via l'API d'authenfication en utilisant un SecretKey au lieu d'un login/password.
from survip-webapi.
Related Issues (20)
- Manage locationType for Coordinates in webAPI HOT 4
- Create a OData query to find children of a building
- Créer les nugets pour le DataLayer et l'authentification
- Gérer l'année du code d'utilisation dans l'API
- Wrong Model used for building Export to CAD
- Add Fields for Prevention to Cad export
- Enlever le tri par ssi dans la gestion des permissions HOT 1
- Add Child building post in webapi HOT 1
- Problem with inspection completion HOT 3
- Picture linked problem on inspection approval HOT 2
- Inspection approval: Can't add more than one picture to anomalies HOT 1
- Inspection approval: link with imported data is lost on approval
- created_on are not return within api for prevention export
- Filter prevention export list by building and not by inspection
- Site plan picture is not updated from the mobile on complete inspection
- Site plan picture is not updated from the mobile on complete inspection HOT 1
- Incorrect and missing fields for hazardous materials when generating reports
- Ajouter une validation de suppression de question si celle-ci est paramètrée comme question suivante
- Requête des inspections complétées prêtes à exportées incorrecte HOT 1
- Add cause.security.management to the api
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from survip-webapi.