OSU-Sustainability-Office / energy-dashboard

Oregon State University's energy dashboard.
https://dashboard.sustainability.oregonstate.edu
GNU General Public License v3.0
11 stars 0 forks source link

Homepage does not acknowledge user log-in #121

Closed jackrwoods closed 3 years ago

jackrwoods commented 3 years ago

If you log in to the Energy Dashboard via the homepage, you will notice that the login button does not disappear, the navigation bar does not show that the user has logged in, and there is no indication that the login process worked.

This fix will include assessing the homepage Vue component, identifying bugs, and implementing multiple fixes.

kristinaxlee commented 3 years ago

CORS issue with logging in: Access to XMLHttpRequest at 'https://api.sustainability.oregonstate.edu/v2/auth/user' from origin 'https://dashboard.sustainability.oregonstate.edu' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

issue is present in all apps calling the login API

kristinaxlee commented 3 years ago

^ CORS issue fixed, check: https://github.com/OSU-Sustainability-Office/lambda-common-layer/commit/e021f1a2c1db515b2807c44fe96fe332447e90dc

kristinaxlee commented 3 years ago

sign in acknowledged and works properly