17.10.2022 - 21.10.2022 arası işler
Dotnet core üzerinde Syslog atma Link Alternatif Link
Socket.io C# client library Link
Identity server unauthorized client için Link
I struggled with the unauthorized_client
error for the Resource Owner Password Validation flow in IdentityServer 4 because the grant type password
was missing in [dbo].[ClientGrantTypes]
for the associated client_id
. I had to insert a new line into the table to fix this error.
INSERT INTO [dbo].[ClientGrantTypes] (
[GrantType]
,[ClientId])
VALUES ('password', X) --where X is value of [dbo].[Clients].[Id] of used client
Base controllera dependency geçirme
public class BaseController : Controller
{
protected readonly IMapper Mapper;
protected BaseController(IMapper mapper)
{
this.Mapper = mapper;
}
}
then
public class MyController : BaseController
{
private readonly MyOtherParam;
public MyController (IMapper mapper, OtherClassType myOtherParam)
:base(mapper)
{
this.MyOtherParam= myOtherParam;
}
}
Dependency injection Link
Token almaya rağmen 401 unauthorized geliyorsa identityserverda yapılacak işlem
Api resource ekle (ApiResources tablosuna) > resource_gateway_api
Api resource için scope ekle (ApiResourceScopes tablosuna) > api_gateway_fullpermission
Client ekle
ClientScopes > api_gateway_fullpermission ve ClientId > 3 seçili client için
Yorumlar
Yorum Gönder