Skip to content

Commit

Permalink
442: also clear csrf token and cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
Lhaaits committed Sep 20, 2023
1 parent 9f8d68b commit b8dc29a
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-parent</artifactId>
<version>0.14.7-SNAPSHOT</version>
<version>0.14.7</version>
<packaging>pom</packaging>

<name>Wikidata Toolkit</name>
Expand Down
2 changes: 1 addition & 1 deletion wdtk-datamodel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-parent</artifactId>
<version>0.14.7-SNAPSHOT</version>
<version>0.14.7</version>
</parent>

<artifactId>wdtk-datamodel</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion wdtk-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-parent</artifactId>
<version>0.14.7-SNAPSHOT</version>
<version>0.14.7</version>
</parent>

<artifactId>wdtk-distribution</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion wdtk-dumpfiles/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-parent</artifactId>
<version>0.14.7-SNAPSHOT</version>
<version>0.14.7</version>
</parent>

<artifactId>wdtk-dumpfiles</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion wdtk-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-parent</artifactId>
<version>0.14.7-SNAPSHOT</version>
<version>0.14.7</version>
</parent>

<artifactId>wdtk-examples</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion wdtk-rdf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-parent</artifactId>
<version>0.14.7-SNAPSHOT</version>
<version>0.14.7</version>
</parent>

<artifactId>wdtk-rdf</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion wdtk-storage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-parent</artifactId>
<version>0.14.7-SNAPSHOT</version>
<version>0.14.7</version>
</parent>

<artifactId>wdtk-storage</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion wdtk-testing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-parent</artifactId>
<version>0.14.7-SNAPSHOT</version>
<version>0.14.7</version>
</parent>

<artifactId>wdtk-testing</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion wdtk-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-parent</artifactId>
<version>0.14.7-SNAPSHOT</version>
<version>0.14.7</version>
</parent>

<artifactId>wdtk-util</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion wdtk-wikibaseapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-parent</artifactId>
<version>0.14.7-SNAPSHOT</version>
<version>0.14.7</version>
</parent>

<artifactId>wdtk-wikibaseapi</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ protected void login(String username, String password, ILogin loginFunction) thr
loginFunction.login(token, username, password);
} catch (NeedLoginTokenException | TokenErrorException e) { // try once more
clearToken("login");
clearToken("csrf");
clearCookies();
token = getOrFetchToken("login");
loginFunction.login(token, username, password);
}
Expand Down

0 comments on commit b8dc29a

Please sign in to comment.