imodeljs / frontend-sample-showcase

MIT License
17 stars 9 forks source link

Showcase does not seem to work with BrowserAuthorizationClient #156

Closed aderderian closed 3 years ago

aderderian commented 3 years ago

Hello, I uncommented the block in SampleBaseApp.tsx in order to try my code with the Authorization Client. The styles for the browser flow seems to be missing some imagery and looks broken. Also, providing my client-id and registering my callback url in Bentley Developer Network, I am getting a 401 on the token request.

image

BaoTon commented 3 years ago

Hi aderderian,

You'll get a 401 since swapping to the BrowserAuthorizationClient requires you have permission to the project on login. The samples are exclusively built for the agent - so unless you've swapped out all the imodels used in the project to a project you belong to, OR you get added to the project (which is unlikely) you'll get a 401.

Regarding the styles, development builds retain pre-i18n localization content, so you'll just see placeholders for those. On build, they'll be translated to English by default, you can read more about them here:

https://www.itwinjs.org/learning/frontend/localization/?term=localization