ABP.IO Sample Angular/Blazor Application- Tenant with separate DB login issue - identityserver4

I created apps with ABP.IO framework with Angular/Blazor UI templates. I am able to compile and run the app successfully in Visual Studio 2019. Everything looks to be working fine except Multi-tenancy with separate database per tenant.
When I create a new tenant with shared database, I works perfectly.
However, if I create a tenant and provide a connection string for a separate database, there seems to be issues.
The database for new tenant is created after running the migration
project.
Before login, I am able to switch the tenant.
After entering username and password, Angular app shows the spinner
icon loading forever.
The Blazor app shows an error message: There was an error trying to
log you in: '', there is a similar question here which is not
answered.
Looking at logs indicates that there are some issues with Identity Server, however, I am unable to resolve the issue. Tried clearing browser cache but that didn't help.
Thanks in advance, any help greatly appreciated.

Related

Can't access wp-admin after migrating website to Chinese server

Hello I'm having some issues with accessing my wp-admin after migrating a website onto a Chinese server.
I used WP Migrate DB plugin to ensure all mentions of my old domain was replaced with the new domain.
I deactivated plugins, changed the theme, created a new admin user, checked user roles and a few other possible solutions that I can't recall at this time.
Looking for general ideas on how to resolve this that I might not have tried.
Thanks

What causes Unauthorized access error in Master Data services web application?

I have a brand new sql server, IIS and Master Data services installation. The installation went okay, but when I access MDS via the browser, I don't see any models or versions listed in "Model:" and "Version:" dropdowns on the home page for my database. Chrome dev tools gives this error "failed to load resource: the server responded with a status of 401 (unauthorized)", but I was able to log into the web app and see the home page. I am also able to log into the database directly, with the same username and password.
I've done the usual auth stuff (enable anonymous auth, ASP.NET impersonation, Form auth). Not sure what else to try
Your question touches on a few issues:
If it's a brand new installation, did you create a new model or deploy any old models? (Sys Admin>Manage>Models>'Add' or Sys Admin>Deployment on the web app tool). You will only see a model in the drop down if you Add a new model or deploy a package of an already created model.
You mention Chrome dev tools. MDS Web app runs on Silverlight, and Chrome does not support it. You need to use IE, or I found an older version of Firefox supporting Silverlight works fine.

Can't open "Datastore Admin"

I have a project including a problem.
After I enabled Datastore Admin, I clicked "Open Datastore Admin" button.
However, I faced an error of "500 Internal Server Error".
An error message is as follows.
The server has either erred or is incapable of performing the requested operation.
In other project, I can open Datastore Admin normally.
I deployed the program of correct project to GAE by eclipse, but same error has occurred.
I cannot find a solution, please help me.
There is a bug report for this issue:
https://code.google.com/p/googleappengine/issues/detail?id=10150&q=%22datastore%20admin%22&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log
"This looks to be a problem because you are using non-default authentication scheme.
Are you using user service/Google Accounts API for authentication of users inside your application? If not, consider changing your authentication method.
If you are, then you'll need to setup a custom domain and access the datastore admin via:
https://ah-builtin-python-bundle-dot-
so that the correct authentication cookies can be used."
I have the same issue, I'm using simpleauth for authentication and I suspect that is the problem... but I haven't solved it yet, changing my authentication scheme is not an option.

Run the application from its EAR

I have only ear file of the application and I need to deploy it on the server. I tried deploying it directly on my integrated weblogic server but because of security in the EAR, it is asking username/password from me and when I provide one from jazn file of the application, it does not accept.
Next I tried creating customization application of the ear and there I gave reference to jazn file while creating project. Now it is accepting my password but while running, it is throwing error -
[oracle.jbo.NoDefException][oracle.jbo.mom.DefinitionManager.findDefinitionObject][ApplicationCustomer]
I googled this error but seems like it is because it is not able to find business components from the corresponding model project. I added the model project as a dependency but still getting the same error.
Any ideas ?
You can create your own users directly in Weblogic, though Weblogic Console:
http://docs.oracle.com/cd/E21764_01/apirefs.1111/e13952/taskhelp/security/DefineUsers.html
Since users are server specific and not application specific, you can use these users to log on against your application.
For convenience reasons an ADF application can deploy users and roles, but thats only for testing purposes. In Production systems, users are not being deployed with the application, but either created through Weblogic Console or Enterprise Manager, or 'injected' by a Authentication Provider.
Another option would be to change passwords for the users deployed along with the application. On Weblogic Console, go to:
Security Realms -> My realm -> User and Groups -> select one of the users -> Passwords.
Then provide New Password and Confirm New Password fields. Save.

SharePoint 2010 and Silverlight

We currently have a Silverlight application which is hosted in a SharePoint 2010 page. The Silverlight app makes web service calls to a another server on our domain, which has a clientaccesspolicy file in place. We are experiencing cross-domain issues in our production environment.
Users in the farm admin group can use the Silverlight application without any issues. However, all other users recieve the generic cross domain exception when they try to use this app. We have attached Fiddler to the process and noticed that the farm admins are served the clientaccesspolicy file, but that non-admin users are not. In fact, Fiddler does not ever show an attempt to load this file for non-admins.
This only happens in our production environment, which leads me to believe there is a web config or permission setting causing the issue. Unfortunately, I cannot find anything that backs this up.
Has anyone else run into this issue or know if such a setting exists?
See comments above. I had to change the URL to use the full machine name i.e. from webserver/service.svc to webserver.domain.com/service.svc. It solved the problem but doesn't answer the question about why the farm admins could access it. vorrtex's response is the best possible explanation I have seen so far.

Resources