Skip to content

Commit

Permalink
fix: update cas cookie name
Browse files Browse the repository at this point in the history
  • Loading branch information
hatch01 committed Sep 4, 2024
1 parent 992917a commit 457382c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/lyon1casclient/lib/src/lyon1casclient.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion packages/lyon1casclient/test/lyon1_cas_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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=")));
});
}

0 comments on commit 457382c

Please sign in to comment.