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

fix: working auth conf

parent 9fa40ba4
No related branches found
No related tags found
2 merge requests!7feat: add front office,!5Https test
......@@ -13,7 +13,6 @@ server {
}
location /api {
proxy_pass https://backend:1443/api;
}
location /OAuth2Login {
proxy_pass https://backend:1443/OAuth2Login;
......@@ -21,7 +20,7 @@ server {
location /OAuth2Callback {
proxy_pass https://backend:1443/OAuth2Callback;
}
location /Logout {
location /Logout {
proxy_pass https://backend:1443/Logout;
}
}
......@@ -18,7 +18,9 @@ export const useAuth = (): Auth => {
//login user
const loginUser = async (): Promise<void> => {
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()
} catch (e) {
setError(e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment