antosubash / blog-comments

MIT License
0 stars 0 forks source link

posts/netcore-microservice-with-abp-identity-server-and-angular-part-8 #15

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

IdentityServer and Angular - .NET Microservice with ABP - Part 8

In this post we will see how to get the IdentityServer and the Angular App working with other services

https://blog.antosubash.com/posts/netcore-microservice-with-abp-identity-server-and-angular-part-8

SooRaj-1994 commented 2 years ago

How can we generate proxy?

antosubash commented 2 years ago

@SooRaj-1994 you can use this https://docs.abp.io/en/abp/latest/CLI#generate-proxy and provide the url.

SooRaj-1994 commented 2 years ago

Can you please help me to move the login and register page to angular? When I am using the Resource Owner Password Flow- an error is showing in angular UI.

Module '"@abp/ng.core"' has no exported member 'Config'.

saphir100 commented 1 year ago

Hi Everyone, after running the angular template. I get this error " '/libs/abp/core/abp.css' for the bundle 'Basic.Global'!" that after run "abp install-libs" on the UI path of the project doesn't fix the error.

I would be grateful if anyone could help @nugayem

nugayem commented 1 year ago

@saphir100 ,

I navigate to the js library and copy the js files or copy everything on the folder. Most likely some files are missing which you can find here. https://github.com/antosubash/Tasky/tree/3a7e658a28885844e35fb5a06dd8538870c94ec8/apps/Tasky.IdentityServer/wwwroot

antosubash commented 1 year ago

@saphir100 you need to install the npm packages. use the "abp install-libs" command.

saphir100 commented 1 year ago

Thanks all. just after login in as admin, I don't see the "identity management" submenu.

@antosubash @nugayem

ynkdqe commented 7 months ago

Hi antosubash, I have a project SmsService. I am unable to check permissions for executing actions within this service, Authorize(Policy = ....) only working in AdministratorService. Is there a way to use Authorize (Policy = ....) in SmsService? This is code demo

[HttpGet] [Authorize(Policy = SmsMessageGroupName.View)] //only working in AdministratorService public async Task GetListMessage([FromQuery]BaseFilterDto filterDto) { _var res = await smsMessageAppService.GetSmsAsync(filterDto); return Ok(res); }

antosubash commented 7 months ago

@ynkdqe did you add SmsService to the scope in the angular project?

ynkdqe commented 7 months ago

@antosubash Yes, but I'm using ReactJS, this is config Oidc.

const oidcConfig: UserManagerSettings = { authority: AUTHORITY, client_id: CLIENT_ID, client_secret: CLIENT_SECRET, response_type: 'code', redirect_uri: REDIRECT_URI silent_redirect_uri: SILENT_URI, post_logout_redirect_uri: LOGOUT_URI, scope: 'SmsService AdministrationService openid offline_access email roles', disablePKCE: false };

atifrd commented 4 months ago

could you please say the github branch before changing identityserver to authServer? thank you