diff --git a/packages/lyon1casclient/lib/src/lyon1casclient.dart b/packages/lyon1casclient/lib/src/lyon1casclient.dart index 6b29095f..c893a1a9 100755 --- a/packages/lyon1casclient/lib/src/lyon1casclient.dart +++ b/packages/lyon1casclient/lib/src/lyon1casclient.dart @@ -37,7 +37,7 @@ class Lyon1CasClient { if (credential.tgcToken.isNotEmpty) { CookieJar cookieJar = await RequestsPlus.getStoredCookies(Constants.casLogin); - cookieJar["TGC"] = Cookie("TGC", credential.tgcToken); + cookieJar["TGC-CAS"] = Cookie("TGC-CAS", credential.tgcToken); await RequestsPlus.setStoredCookies(Constants.casLogin, cookieJar); } if (cookieOnly) { diff --git a/packages/lyon1casclient/test/lyon1_cas_test.dart b/packages/lyon1casclient/test/lyon1_cas_test.dart index fb6f9631..8413fd3e 100755 --- a/packages/lyon1casclient/test/lyon1_cas_test.dart +++ b/packages/lyon1casclient/test/lyon1_cas_test.dart @@ -53,6 +53,6 @@ void main() async { final String cookies = await authOK.getTgcToken(); expect(isAuthenticated, equals(false)); - expect(cookies, isNot(contains("TGC="))); + expect(cookies, isNot(contains("TGC-CAS="))); }); }