hi
Can you use abp get-source Volo.Payment --version 9.2.0 command to download the full source code?
Thanks.
hi
You can create a new Application in the ABP OpenIDDict module page.
And then use it to get an access token
using IdentityModel.Client;
using System;
using System.Net.Http;
using System.Threading.Tasks;
public class Program
{
public static async Task Main(string[] args)
{
// 1. Create an HttpClient instance
var client = new HttpClient();
// Optional: Set a base address if all requests go to the same IdentityServer
// client.BaseAddress = new Uri("https://yoursolution1.com");
// 2. Discover the token endpoint (recommended)
// This dynamically finds the endpoint address from the discovery document
var disco = await client.GetDiscoveryDocumentAsync("https://yoursolution1.com");
if (disco.IsError)
{
Console.WriteLine(disco.Error);
return;
}
// 3. Create the client credentials token request
var request = new ClientCredentialsTokenRequest
{
Address = disco.TokenEndpoint, // Use the discovered token endpoint
ClientId = "m2m", // Your client ID
ClientSecret = "secret", // Your client secret
Scope = "api" // The scope(s) you need access to
};
// 4. Send the request and await the response
var tokenResponse = await client.RequestClientCredentialsTokenAsync(request);
// 5. Check for errors and process the token
if (tokenResponse.IsError)
{
Console.WriteLine(tokenResponse.Error);
// Handle error, e.g., throw an exception or return
return;
}
Console.WriteLine("Token retrieved successfully:");
Console.WriteLine(tokenResponse.AccessToken);
}
}
hi
You can add some inbox/outbox workers for specific events.
See https://github.com/abpframework/abp/pull/21716#issue-2757288681
Thanks.
hi
Can you build your package with abp module source code?
In this way, your package doesn't need to restore ABP packages.
Thanks.
hi
You can define a new OAuth2 Application/Client in solution 1, then use it to get a token from solution 1 in solution 2 and call the API.
You can use client_credentials or password to get a token.
Thanks.
hi
The above steps have already logged into two applications. Why do you need them to communicate with each other?
Thanks.
Thanks. : )
hi
Can you download and install again?
Sorry for that. We will add an option to disable the automatic upgrade.
https://abp.io/api/abp-studio/download/r/windows/abp-studio-0.9.8-beta-full.nupkg
Your question has been refunded.
Thanks.
hi
I think you can use CLI to download the source code now. Can you try again?
Thanks