- ABP Framework version: v3.3.1
- DB provider: EF Core
- **Identity Server Seperated
I want to login in Identity server and then make request in Host server. Problems I'm having cookies AspNetCore.Antiforgery and AbpAuthorization.
I capture the login request by Fiddler and try to make other request in Host using the same cookies

The response to that is
[11:13:04 INF] Authorization failed. [11:13:04 WRN] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "Authorization failed! Given policy has not granted.", "details": null, "data": null, "validationErrors": null } [11:13:04 WRN] Authorization failed! Given policy has not granted. Volo.Abp.Authorization.AbpAuthorizationException: Authorization failed! Given policy has not granted.
How can I solve my problem??
5 Answer(s)
- 
    0hi You need to use token for authentication. Cookies are used in the Identity Server website but for apis it needs token. 
- 
    0Hi, how can I get the token? 
- 
    0
- 
    0
- 
    0hi BernardoTeixeira Invalid_client Please check your identity server's Client_Idhttps://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.DbMigrator/appsettings.json#L13 




 
                                