Commit ec653b0
editoast: ignore user headers when skip-authz is present
Update whoami endpoint response accordingly. The special handling was
required when editoast could start with --disable-authorization. It is
not possible for the frontend to skip authorization with the
`x-osrd-skip-authz` header as it will be stripped by the gateway.
Co-authored-by: Younes Khoudli <younes.khoudli@epita.fr>
Signed-off-by: Younes Khoudli <younes.khoudli@epita.fr>
Signed-off-by: Loup Federico <16464925+Sh099078@users.noreply.github.com>1 parent 38edf85 commit ec653b0
3 files changed
Lines changed: 17 additions & 62 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 141 | + | |
150 | 142 | | |
151 | 143 | | |
152 | 144 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | 133 | | |
135 | 134 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
143 | 144 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | 145 | | |
159 | 146 | | |
160 | 147 | | |
| |||
1832 | 1819 | | |
1833 | 1820 | | |
1834 | 1821 | | |
1835 | | - | |
1836 | | - | |
| 1822 | + | |
1837 | 1823 | | |
1838 | 1824 | | |
1839 | 1825 | | |
1840 | | - | |
1841 | | - | |
1842 | | - | |
1843 | | - | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
1847 | | - | |
1848 | | - | |
1849 | | - | |
1850 | | - | |
| 1826 | + | |
1851 | 1827 | | |
1852 | 1828 | | |
1853 | 1829 | | |
1854 | 1830 | | |
1855 | 1831 | | |
1856 | 1832 | | |
1857 | 1833 | | |
1858 | | - | |
1859 | | - | |
| 1834 | + | |
1860 | 1835 | | |
1861 | 1836 | | |
1862 | 1837 | | |
1863 | | - | |
1864 | | - | |
1865 | | - | |
1866 | | - | |
| 1838 | + | |
1867 | 1839 | | |
1868 | 1840 | | |
1869 | 1841 | | |
| |||
1990 | 1962 | | |
1991 | 1963 | | |
1992 | 1964 | | |
1993 | | - | |
1994 | 1965 | | |
1995 | 1966 | | |
1996 | | - | |
1997 | | - | |
| 1967 | + | |
1998 | 1968 | | |
1999 | 1969 | | |
2000 | 1970 | | |
2001 | | - | |
2002 | | - | |
2003 | | - | |
2004 | | - | |
2005 | | - | |
2006 | | - | |
2007 | | - | |
2008 | | - | |
2009 | | - | |
| 1971 | + | |
2010 | 1972 | | |
2011 | 1973 | | |
2012 | 1974 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
| |||
0 commit comments