Activities of "liangshiwei"

Answer

I am calling a service that requires authorization.

Sure. We can use skype. What is your skype name? you can send email to me: liangshiw@outlook.com

Hi,

I can't reproduce your problem, Can your project steps to reproduce? Thanks.

Hi,

I can't reproduce your problem, Can your project steps to reproduce? Thanks.

Answer

Hi,

I can't reproduce your problem. Can you use ABP CLI to create a free template to reproduce this problem?

Answer

Sorry I forgot you used angularUI.

Find environment.ts(and environment.prod.ts) in your angular project.

oAuthConfig: {
    issuer: 'https://localhost:44305',
    clientId: 'MyProjectName_App',
    dummyClientSecret: '1q2w3e*',
    scope: 'MyProjectName Your API Resources Name',  // add your API Resources Name 
    showDebugInformation: true,
    oidc: false,
    requireHttps: true,
  }
Answer

Hi,

Find AddOpenIdConnect method in your client application module class and add the following code:

.AddOpenIdConnect("oidc", options =>
{
     --------
    // add this line
    options.Scope.Add(Your API Resources Name);
     --------
});
Answer

Hi,

After adding API resources, you need to add API resources that are accessible to the client

Like https://github.com/abpframework/abp/blob/dev/samples/MicroserviceDemo/microservices/IdentityService.Host/IdentityServiceHostModule.cs, Use an ASPNET Core application as the host, and install identity management module and localization management module.

Has your first problem been solved? Please create a new post to discuss. Thanks.

Hi,

Please use the following method to get the token:

Showing 5491 to 5500 of 5638 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 05:21