With this I still have to refresh the page for it to do anything. I was looking for a way to taggle the language on the page before it loads. See the issue is that I go to the page, it shows in english first and then from the ngOnInit handler I can set the language but the page is already showing english, so then I have to refresh the page for it to show the selected language.
Any way around this?
This is not an issue, more of a question on what is the best way to do something....
The scenario is that I have a page that is sent to a guest via sms or email. The guest has a preferred language which the page reads from that repo. When the page loads I want the content to be in the language that is preferred for that guest.
I have all of the text localized so thats no issue
In my ngOnInit handler I have added code to set the cookie for the language, but once I set the cookie I have to refresh the page before it reads that cookie and then applies the language. It is kinda distracting for the user to see the page kinda load and then reload again with the correct language. Is there a way in angular to set the language without having to use that cookie?
I asked this question in another thread but that thread was already closed so I am reposting here.
My question is, can I use one instance of ASPNetZero (configured to host Identity Server) as a solution for single sign-on across other ASPNetZero projects. Can this be done "out of the box" with making configuration changes. If so, does it handle the multi-tenancy?
What I am trying to accomplish is having a platform of products that are connected through SSO using ASPNetZero as the Identity Server. If I go to one of those products and I am not logged in I want to be redirected to the ASPNetZero instance that is running as Identity Server, login, and then be redirected back to the product I originally tried to access. If I am already logged in then any of those products in which I have access to should allow me to access them without logging in again.
As I have looked at posts here I seem to get a conflicting answer. If possible, can someone explain the configuration?
Thank you for that information. I did also find that my problem disappeared after I updated the angular CLI
npm install -g @angular/cli
I have already tried increasing the memory using that method. It did not solve my problem. Oddly enough, when I run ng build --prod from the command line I do not get any failures, it's only when I try to publish from within Visual
yes, as it turns out the same thing happens with 6.3.1 however it didnt happen with 6.2.x
@ismcagdas
I am confused by this answer. Does ASPNetZero support SSO across 2 (or more) ASPNetZero apps by configuring one of those apps as the Identity Server and the other Apps connected to it through OpenIdConnect?
In another post you told the user this wasn't supported
Fresh download of 6.4 and when I attempt to publish the Host solution (which is a merged solution with Angular) I get the error:
The command "ng build --prod" exited with code 9009.
I have read online about it being related to a memory issue but I have tried increasing the memory. Anyone else have this problem and know how to solve?
I found the problem...
After looking at all the files loaded on the client side, it appears the solution was loading appsetting.production.json, I had not edited that file in the src/assets folder and so it was still pointing to localhost. Once I updated that and re-published, that solved the problem.
Thanks all for your help
Great! So then I have followed all instructions...
-- Publish was successful --
I can navigate to swagger (test.mycompany.com/swagger) and it appears as it should -> Success
However, when I navigate to the root url: test.mycompany.com, i receive a modal with the following error: An error has occurred! Error detail not sent by server.
I have made sure that logging is turned on for my app service, it is, but the logs are empty. It seems like a client side issue.