2077 |
mathias |
1 |
package org.tela_botanica.del.client.services.rest.async;
|
|
|
2 |
|
|
|
3 |
import org.tela_botanica.del.client.modeles.AuthInfo;
|
|
|
4 |
import org.tela_botanica.del.client.utils.UtilitairesServiceResultat;
|
|
|
5 |
|
|
|
6 |
import com.google.gwt.json.client.JSONParser;
|
|
|
7 |
import com.google.gwt.user.client.Window;
|
|
|
8 |
|
|
|
9 |
/**
|
|
|
10 |
* Retour des services annuaire:auth : connexion, deconnexion, identite - un jeton
|
|
|
11 |
* JWT si identifié, false sinon
|
|
|
12 |
*/
|
|
|
13 |
public abstract class AuthCallback extends PHPCallback<AuthInfo> {
|
|
|
14 |
|
|
|
15 |
@Override
|
|
|
16 |
public AuthInfo parserJSON(String retourService) {
|
|
|
17 |
AuthInfo authInfo = UtilitairesServiceResultat.parserAuthJson(JSONParser.parseStrict(retourService));
|
|
|
18 |
return authInfo;
|
|
|
19 |
}
|
|
|
20 |
}
|