Hi, I will apply the temporary workaround, and I hope you will provide a permanent solution as well.
In our ABP.io v8 Angular UI application, we are experiencing the following error when some users log in:
Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
Upon investigation, we found that in the getFromToken function, the access token payload is decoded using atob. When the payload length is not a multiple of 4 (due to missing Base64 padding =), atob throws this error. This happens especially when the preferred_username claim contains an email (e.g., abc@de.com).
Current Code:(in remember-me.service.ts)
const tokenBody = accessToken.split('.')[1].replace(/-/g, '+').replace(/_/g, '/');
const parsedToken = JSON.parse(atob(tokenBody));
Suggested Fix: Add missing padding before calling atob:
while (tokenBody.length % 4 !== 0) {
tokenBody += '=';
}
Alternatively, using the jwt-decode library in Angular would be a more reliable approach.
Hi,
I already tried this and it didn't work. The CLI tool should install successfully on Linux/Ubuntu environments, just like it does on Windows. Could you please check if Linux support is intended and ensure the package includes the necessary DotnetToolSettings.xml file?
dotnet nuget list source: Registered Sources:
Abp Version 9.3
Hello Sümeyye, Thanks. Then I hope you update the tutorial accordingly
Hi,
The app.module.ts file does not exist, it was not created by abp studio
Specified module 'app' does not exist. Looked in the following directories: /src/app/book /src/app/app /src/app /src
yarn ng generate module author --module app --routing --route authors
(Tutorial)Hi Engincan,
While you're at it, if you could change the Google logo as in the link, it would be more standard, thank you.
replace with
Hi Engincan, It did not allow login (this is expected behavior) only this warning message did not come. (MVC UI- Authorization Code Flow)
Hi, I think this is a bug, so it would be better if you solve this issue.