Commit 242c73b
GN5 / Add sign in/out support
Currently, when deploying GeoNetwork 5 with GeoNetwork 4 sign in operation are managed by version 5. This adds the possibility to sign in from GeoNetwork 4 directly.
Configuration steps for GN4 are:
* start with `-Dgeonetwork.security.type=gn5`
* In `config-security.properties`, configure the URLs for login and logout to point to GN5 (this could maybe be avoided with X-Forwarded headers?):
```properties
logout.success.url=http://localhost:7979/geonetwork/srv/eng/catalog.search
loginForm=http://localhost:7979/geonetwork/srv/eng/catalog.signin
loginErrorForm=http://localhost:7979/geonetwork/srv/eng/catalog.signin?failure=true
```
* In UI configuration, enable the authentication and set the signin/signout URLs to use the GN5 URLs:
```json
"authentication": {
"enabled": true,
"signinUrl": "../../{{node}}/{{lang}}/catalog.signin",
"signinAPI": "../../api/user/signin",
"signoutUrl": "../../api/user/signout"
```1 parent 36160ae commit 242c73b
File tree
6 files changed
+17
-8
lines changed- core/src/main/java/org/fao/geonet/util
- web-ui/src/main/resources/catalog
- components/toolbar/partials
- js
- templates
- views/default/templates/recordView
6 files changed
+17
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
566 | 569 | | |
567 | 570 | | |
568 | 571 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1298 | 1298 | | |
1299 | 1299 | | |
1300 | 1300 | | |
| 1301 | + | |
1301 | 1302 | | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
1302 | 1306 | | |
1303 | 1307 | | |
1304 | 1308 | | |
| |||
1871 | 1875 | | |
1872 | 1876 | | |
1873 | 1877 | | |
1874 | | - | |
1875 | | - | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
1876 | 1883 | | |
1877 | 1884 | | |
1878 | 1885 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments