Activities of "maliming"

Check the endpint and refresh token

hi

abp is modular, when you want to call the API of another project, you can only refer to its contract or http client module, which is a modular design.

Also, it would be useful if you provided an example of proper way to create HttpClient and make HTTP requests in ABP app.

The default module template already includes these APIs and examples.

hi

You can consider to custom the Manage(account\src\Volo.Abp.Account.Pro.Public.Web\Pages\Account\Manage.cshtml.cs) page.

hi

There is no document for this case because it is not related to the framework but to asp net core. I think you can copy the code of asp net core directly to the abp project. If you have any issues, please feel free to give feedback.

You can also share your external Identity provider code and I will confirm it.

Good news.

hi

The module must be referenced.

hi

I don't know if swagger supports custom authorize urls, I'll check.


var testClientId = configurationSection["SBC_Mobile:ClientId"];
if (!testClientId.IsNullOrWhiteSpace())
{
    await CreateClientAsync(
        name: testClientId,
        scopes: commonScopes,
        grantTypes: new[] { "password", "client_credentials", "authorization_code"},
        secret: configurationSection["SBC_Mobile:ClientSecret"].Sha256(),
        requireClientSecret: true,
        redirectUri: "https://localhost:44317"
    );
}
        
private async Task<ApiResource> CreateApiResourceAsync(string name, IEnumerable<string> claims)
    {
        var apiResource = await _apiResourceRepository.FindByNameAsync(name);
        if (apiResource == null)
        {
            apiResource = await _apiResourceRepository.InsertAsync(
                new ApiResource(
                    _guidGenerator.Create(),
                    name,
                    name + " API"
                ),
                autoSave: true
            );
        }

        foreach (var claim in claims)
        {
            if (apiResource.FindClaim(claim) == null)
            {
                apiResource.AddUserClaim(claim);
            }
        }

        if (apiResource.FindSecret((name + "Secret").Sha256()) == null)
        {
            apiResource.AddSecret((name + "Secret").Sha256());
        }

        return await _apiResourceRepository.UpdateAsync(apiResource);
    }
Scope = "email openid profile offline_access role phone address SBC",
var response = await httpClient.Value.IntrospectTokenAsync(new TokenIntrospectionRequest
{
    Address = disco.IntrospectionEndpoint,
    ClientId = "SBC",
    ClientSecret = "SBCSecret",
    Token = token.Text,
});
var response = await httpClient.Value.RequestRefreshTokenAsync(new RefreshTokenRequest()
{
    Address = disco.TokenEndpoint,
    ClientId = clientId.Text,
    ClientSecret = secret.Text,
    RefreshToken = refreshToken.Text,
});

hi

The current design cannot remove these infrastructure modules.

How should we handle https://tenant1.api.getabp.net:44302/swagger/index.html for tenant1?

What do you mean?

Showing 7781 to 7790 of 10652 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20