Why do i still get a warning [16:35:30 WRN] Couldn't determinate version of "@abp/ng.schematics" package.
?
looks like the generation is fine
Message=Error loading discovery document: Error connecting to https://localhost:44330/.well-known/openid-configuration. Failed to connect to localhost/127.0.0.1:44330.
appsetting.json
in Maui project
{
"Oidc": {
"Options": {
"Authority": "https://localhost:44330",
"ClientId": "Mobile_Maui",
"RedirectUri": "mobile://",
"PostLogoutRedirectUri": "mobile://",
"Scope": "offline_access Mobile"
}
},
"RemoteServices": {
"Default": {
"BaseUrl": "https://localhost:44330"
}
}
}
appsettings.json in Web project
{
"App": {
"SelfUrl": "https://localhost:44381"
},
"Redis": {
"Configuration": "127.0.0.1"
},
"ConnectionStrings": {
"Default": "Server=localhost;Database=AmazingSoftwareMobile;Trusted_Connection=True"
},
"AuthServer": {
"Authority": "https://localhost:44381",
"RequireHttpsMetadata": "false"
},
"StringEncryption": {
"DefaultPassPhrase": "<omitted>"
}
}
even if I change https://localhost:44330 to https://localhost:44381 it doesn't work
I have followed all the documentation and the application successfully runs but when I click on the login button i get the following error
I am even using ngrok so the backend is available on the web
System.InvalidOperationException Message=Error loading discovery document: Error connecting to https://<omited>.au.ngrok.io/.well-known/openid-configuration. An error occurred while sending the request..
When i go to that URL in browser I do get a response with off the openid-configuration
Yeah but I am using remote iOS simulator on my mac and the backend app is running on my windows so is the Maui project so to see it I have used pair to Mac and need the Mac to be able to browse to the back end so easiest way was to use ngrok and modify the handler
If you are using the Remote iOS simulator from your Mac even in the safari it will not work because the Remote iOS simulator looks at the Mac as localhost be the backend is running on windows
However if I run the backend on the Mac then it will work on windows Remote iOS Simulator
If you're creating a bug/problem report, please include followings:
[0:] An error occurred: 'Error loading discovery document: Issuer name does not match authority: https://localhost:44343/'. Callstack: ' at IdentityModel.OidcClient.OidcClient.EnsureProviderInformationAsync(CancellationToken cancellationToken) in //src/OidcClient/OidcClient.cs:line 410 at IdentityModel.OidcClient.OidcClient.EnsureConfigurationAsync(CancellationToken cancellationToken) in //src/OidcClient/OidcClient.cs:line 371 at IdentityModel.OidcClient.OidcClient.LoginAsync(LoginRequest request, CancellationToken cancellationToken) in /_/src/OidcClient/OidcClient.cs:line 73 at Amazing.Software.Mobile.Maui.Oidc.LoginService.LoginAsync() in C:\LearnABP\Amazing.Software.Mobile\aspnet-core\src\Amazing.Software.Mobile.Maui\Oidc\LoginService.cs:line 21 at Amazing.Software.Mobile.Maui.ViewModels.MainPageViewModel.LoginOrLogoutAsync() in C:\LearnABP\Amazing.Software.Mobile\aspnet-core\src\Amazing.Software.Mobile.Maui\ViewModels\MainPageViewModel.cs:line 53 at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state) at Foundation.NSAsyncSynchronizationContextDispatcher.Apply() at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName) at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass) at Amazing.Software.Mobile.Maui.Program.Main(String[] args) in C:\LearnABP\Amazing.Software.Mobile\aspnet-core\src\Amazing.Software.Mobile.Maui\Platforms\iOS\Program.cs:line 12 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)' The app has been terminated.
appsettings.json of web project
{
"App": {
"SelfUrl": "https://localhost:44343/"
},
"Redis": {
"Configuration": "127.0.0.1"
},
"ConnectionStrings": {
"Default": "Server=localhost;Database=AmazingSoftwareMobile;Trusted_Connection=True"
},
"AuthServer": {
"Authority": "https://localhost:44343/",
"RequireHttpsMetadata": "false",
"ValidIssuers": [ "https://10.10.30.30:45455/" ]
},
"StringEncryption": {
"DefaultPassPhrase": "MBvujhnLzlU9atyZ"
}
}
appsettings.json of maui project
{
"Oidc": {
"Options": {
"Authority": "https://10.10.30.30:45455/",
"ClientId": "Mobile_Maui",
"RedirectUri": "mobile://",
"PostLogoutRedirectUri": "mobile://",
"Scope": "offline_access Mobile"
}
},
"RemoteServices": {
"Default": {
"BaseUrl": "https://10.10.30.30:45455/"
}
}
}
ConfigureAuthentication Method in MobileWebModule
as you can see I have added the Valid Issuer as 10.10.30.30
private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{
context.Services.AddAuthentication().AddJwtBearer(options => {
options.TokenValidationParameters.ValidIssuers = configuration.GetSection("AuthServer:ValidIssuers").Get<string[]>();
});
context.Services.ForwardIdentityAuthenticationForBearer(OpenIddictValidationAspNetCoreDefaults.AuthenticationScheme);
}
The local address of my pc is https://10.10.30.30, I can browse the website in my browser security with no errors and can also download the https://10.10.30.30:45455/.well-known/openid-configuration
I am using Conveyor by Keyoti
for tunneling because can't use the local host as suggested in Microsoft Docs to use the HostName or IP address of the computer the ports 44343 and 45455 are both open in the windows firewall
If you're creating a bug/problem report, please include followings:
ABP Framework version: v6.0.1
UI type: MVC
DB provider: EF Core
Tiered (MVC) or Identity Server Separated (Angular): no
Exception message and stack trace:
Steps to reproduce the issue:"
can you please share what is the solution please?
not found Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
If you're creating a bug/problem report, please include followings:
ABP Framework version: v6.0.1
UI type: Blazor
DB provider: EF Core
Exception message and stack trace:
Steps to reproduce the issue:"
Severity Code Description Project File Line Suppression State Error NU1301 Failed to retrieve information about 'Volo.Saas.Host.Blazor.WebAssembly/Volo.Saas.Host.Blazor.WebAssembly' from remote source 'https://www.myget.org/F/blazorise/api/v3/flatcontainer/volo.saas.host.blazor.webassembly/volo.saas.host.blazor.webassembly/index.json'. Volo.Chat.Blazor.Host C:\Amazing\LearnABP\SourceCode\6.0.1\Volo.Chat\host\Volo.Chat.Blazor.Host\Volo.Chat.Blazor.Host.csproj 1
I am trying to setup a Zapier integration and I have to ayse the refresh_token flow my settings are as follows
but when I try and connect from Zaiper I get
Zaiper is asking for refresh_token endpoint, is there one?