ZHAW-PM4-Compass / compass

A time-, mood- and incident tracking application for Stadtmuur called Compass 🧭
https://stadtmuur.ch/
MIT License
0 stars 0 forks source link

Fix Authentication Issues in GitHub Actions #167

Open r44cx opened 2 weeks ago

r44cx commented 2 weeks ago

Describe the bug Authentication in GitHub Actions is broken. The following errors are observed:

Failed request: http://localhost:3000/api/auth/me - net::ERR_ABORTED
Failed request: http://localhost:3000/api/auth/me - net::ERR_ABORTED
Failed request: ***authorize?client_id=***&scope=openid%20profile%20email&response_type=code&redirect_uri=***api%2Fauth%2Fcallback&audience=***&nonce=tEb3vJhKi2X7cciI8v-E_JksXJUc1NtPKYRVzlV4S4Y&state=eyJyZXR1cm5UbyI6Imh0dHBzOi8vc3RhZHRtdXVyLWNvbXBhc3MtZGV2LmV1LmF1dGgwLmNvbS9ob21lIn0&code_challenge_method=S256&code_challenge=7m7mFxRulEfXxNUdpL393sWJilAo7c1PLU3BVGOGMxg - net::ERR_FAILED
Failed response: ***authorize?client_id=***&scope=openid%20profile%20email&response_type=code&redirect_uri=***api%2Fauth%2Fcallback&audience=***&nonce=P6G8DjAwdBv-3kBaI7TI8UE_a22GJ3eyTm5hA_35FWs&state=eyJyZXR1cm5UbyI6Imh0dHBzOi8vc3RhZHRtdXVyLWNvbXBhc3MtZGV2LmV1LmF1dGgwLmNvbS9ob21lIn0&code_challenge_method=S256&code_challenge=Lfhr9vrNZHkyjn1FvVOIT535w_qVcE08Q_HoWAYtvr8 - 403

and

[WebServer]  ⚠ DynamicCodeEvaluationWarning: Dynamic Code Evaluation (e. g. 'eval', 'new Function') not allowed in Edge Runtime
Learn More: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation
    at cov_e1l9b4zdi (webpack-internal:///(middleware)/./src/constants/roles.tsx:8:18)
    at eval (webpack-internal:///(middleware)/./src/constants/roles.tsx:34:1)
    at (middleware)/./src/constants/roles.tsx

To Reproduce Steps to reproduce the behavior:

  1. Create PR
  2. Run Frontend E2E Tests