Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Authentifizierung fehlgeschlagen! Kein gültiger Token verfügbar. #155

Open
ch3fc00k opened this issue Nov 13, 2024 · 5 comments
Open

Comments

@ch3fc00k
Copy link

ch3fc00k commented Nov 13, 2024

What is the bug?
Explain what the bug is. Be as precise as possible. We should be able to reproduce the bug based on your explanation.

Chrome Console Error:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src-elem 'nonce-_c11d832fe1e69377b818c54eca5def62'". Either the 'unsafe-inline' keyword, a hash ('sha256-FwBJ4xNQDeCjsM4q01E/8NcnhbrIQ736ZPz34ysXdcw='), or a nonce ('nonce-...') is required to enable inline execution.

This error ocures instantaneously after submitting the default TULogIn data {username} and {password}. I have no chance of submitting my 2FA Token manually, because the request is skipped.

Screenshots
Opal Error
What system are you running?
Browser:
Chrome
TUfast Version:
8.1.1.0

Anything else that is important?
No idea if this is "important":
I tried
-reinstalling the AddOn(TUfast),
-refreshing my LogIn Data and the Base32 encoded Token,
-renew the whole 2FA Token,
and I'm already out of ideas.

@OliEfr
Copy link
Member

OliEfr commented Nov 13, 2024

Thanks for submitting the issue.

I assume you save your ZIH Login in TUfast, and setup 2FA as described here (please check): https://github.com/TUfast-TUD/TUfast_TUD/blob/main/docs%2F2FA.md

Then, when you visit the zih-login page the error you described above occurs. Correct?

Since when do you have the problem?

@ch3fc00k
Copy link
Author

Yes, 2FA was setup exactly like in the describtion.
Correct.
Since today.

It can't be a Token Problem, because I have no LogIn issues on my laptop.

@OliEfr
Copy link
Member

OliEfr commented Nov 13, 2024

HI @C0ntroller , do you have an idea?

@ch3fc00k
Copy link
Author

@OliEfr it seems like the issue resolved itself, as I tried to login this morning I got through just like anytime else.

@ch3fc00k ch3fc00k reopened this Nov 14, 2024
@C0ntroller
Copy link
Member

HI @C0ntroller , do you have an idea?

Nope, never seen that.

Chrome Console Error:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src-elem 'nonce-_c11d832fe1e69377b818c54eca5def62'". Either the 'unsafe-inline' keyword, a hash ('sha256-FwBJ4xNQDeCjsM4q01E/8NcnhbrIQ736ZPz34ysXdcw='), or a nonce ('nonce-...') is required to enable inline execution.

This could be anything from a bad configuration of the TU guys to any browser add on you have installed (adblocker, privacy stuff). Do you see this message on other sites too (especially some with restrictive Content-security-policy like logins)?

This error ocures instantaneously after submitting the default TULogIn data {username} and {password}. I have no chance of submitting my 2FA Token manually, because the request is skipped.

In this case I would strongly think TUfast is not the culprit. Because the script only runs after the site is loaded (else we would run into problems of not existing inputs or buttons), you should always see the sites at least for a short time.

Also the error itself sounds more like some backend stuff, but as I never saw it before, I can't say that for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants