Base solution for your next web application

Activities of "sais"

Hi, I know it has been a while. We now have a hard requirement to add ws-fed. .

The application is single tenant. We want to disable the individual accounts and self registration and just have our users login via ws-fed.

When I disable self-registration and try to login using ws-fed, I get the following message "UserFriendlyException: Self user registration is disabled. Please contact the system administrator to register." However, there is already an account with the email address in the database, therfore, I should be able to authenticate.

How can this be accomplished?

Please advise.

Hi, which url?

Now, I am getting the following error. I am not sure what is happening.

An unhandled exception occurred while processing the request. SecurityTokenInvalidAudienceException: IDX10214: Audience validation failed. Audiences: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. Did not match: validationParameters.ValidAudience: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]' or validationParameters.ValidAudiences: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. Microsoft.IdentityModel.Tokens.Validators.ValidateAudience(IEnumerable<string> audiences, SecurityToken securityToken, TokenValidationParameters validationParameters)

Exception: An error was encountered while handling the remote login. Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>.HandleRequestAsync()

Stack Query Cookies Headers Routing SecurityTokenInvalidAudienceException: IDX10214: Audience validation failed. Audiences: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. Did not match: validationParameters.ValidAudience: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]' or validationParameters.ValidAudiences: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. Microsoft.IdentityModel.Tokens.Validators.ValidateAudience(IEnumerable<string> audiences, SecurityToken securityToken, TokenValidationParameters validationParameters) Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityTokenHandler.ValidateAudience(IEnumerable<string> audiences, SecurityToken securityToken, TokenValidationParameters validationParameters) Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityTokenHandler.ValidateConditions(Saml2SecurityToken samlToken, TokenValidationParameters validationParameters) Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityTokenHandler.ValidateToken(Saml2SecurityToken samlToken, string token, TokenValidationParameters validationParameters, out SecurityToken validatedToken) Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityTokenHandler.ValidateToken(string token, TokenValidationParameters validationParameters, out SecurityToken validatedToken) Microsoft.AspNetCore.Authentication.WsFederation.WsFederationHandler.HandleRemoteAuthenticateAsync()

Show raw exception details Exception: An error was encountered while handling the remote login. Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>.HandleRequestAsync() IdentityServer4.Hosting.FederatedSignOut.AuthenticationRequestHandlerWrapper.HandleRequestAsync() Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

Show raw exception details

Thank you, I tried https://mywebsite.com**/signin-wsfed** as the replyUrl and it worked. Not sure if this is documented somewhere.

You can use PowerBI. It has a free version on for the Cloud service. This will allow you to use the PowerBI API to create/update/delete datasets on the Fly. This way, you or your end-users can build dashboards that can be embedded in your app. We took this approach avoid needing a developer every time we need a new report done, instead, we subscribed to Entity events (using the system Bus), invoke a hangfire job to push the new/updated data to PowerBi via the API. Our end users are also using the free version of Power BI, so they are able to create their own reports.

<a class="postlink" href="https://powerbi.microsoft.com/en-us/blog/tag/api/">https://powerbi.microsoft.com/en-us/blog/tag/api/</a>

Answer

Were you able to get this integrated? I am looking to do this as well but no luck. I purchased the Aspnet Zero template.

Hi, can someone please reply.

Showing 1 to 7 of 7 entries