Skip to content
Snippets Groups Projects
Commit 1d17ece2 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: working auth conf

parent 9fa40ba4
Branches
No related tags found
2 merge requests!7feat: add front office,!5Https test
...@@ -13,7 +13,6 @@ server { ...@@ -13,7 +13,6 @@ server {
} }
location /api { location /api {
proxy_pass https://backend:1443/api; proxy_pass https://backend:1443/api;
} }
location /OAuth2Login { location /OAuth2Login {
proxy_pass https://backend:1443/OAuth2Login; proxy_pass https://backend:1443/OAuth2Login;
...@@ -21,7 +20,7 @@ server { ...@@ -21,7 +20,7 @@ server {
location /OAuth2Callback { location /OAuth2Callback {
proxy_pass https://backend:1443/OAuth2Callback; proxy_pass https://backend:1443/OAuth2Callback;
} }
location /Logout { location /Logout {
proxy_pass https://backend:1443/Logout; proxy_pass https://backend:1443/Logout;
} }
} }
...@@ -18,7 +18,9 @@ export const useAuth = (): Auth => { ...@@ -18,7 +18,9 @@ export const useAuth = (): Auth => {
//login user //login user
const loginUser = async (): Promise<void> => { const loginUser = async (): Promise<void> => {
try { try {
await axios.get(`${_apiUrl}OAuth2Login`, { withCredentials: true }) const tmp = await axios.get(`${_apiUrl}OAuth2Login`, { withCredentials: true })
console.log('lAAAAAA')
console.log(tmp)
await setUserContext() await setUserContext()
} catch (e) { } catch (e) {
setError(e) setError(e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment