Location of the default config file is
Linux: “~/.kube/config”
Windows: “$HOME\.kube\config”
The Context has three parameters: Cluster, Namespace and User.
When you use the kubectl it is using the current …
The post Switch Context in Kubernetes with Kubectl appeared first on Svet Paregov.
]]>Location of the default config file is
Linux: “~/.kube/config”
Windows: “$HOME\.kube\config”
The Context has three parameters: Cluster, Namespace and User.
When you use the kubectl it is using the current …
The post Switch Context in Kubernetes with Kubectl appeared first on Svet Paregov.
]]>I have registered a new domain that will be used for the services exposed with Google Domains. Keep in mind that you can register directly with Cloudflare, but I already have domains with Google and this is why registered it there. I just …
The post Cloudflare free tier for home use appeared first on Svet Paregov.
]]>I have registered a new domain that will be used for the services exposed with Google Domains. Keep in mind that you can register directly with Cloudflare, but I already have domains with Google and this is why registered it there. I just …
The post Cloudflare free tier for home use appeared first on Svet Paregov.
]]>The post Setup MicroK8s Kubernetes cluster on Ubuntu with ingress and dashboard appeared first on Svet Paregov.
]]>The post Setup MicroK8s Kubernetes cluster on Ubuntu with ingress and dashboard appeared first on Svet Paregov.
]]>First I want to say that the 18TB drives are still not officially supported by Synology, but I saw some websites selling …
The post Expanding RAID 1 pool size on Synology NAS by adding more disks appeared first on Svet Paregov.
]]>First I want to say that the 18TB drives are still not officially supported by Synology, but I saw some websites selling …
The post Expanding RAID 1 pool size on Synology NAS by adding more disks appeared first on Svet Paregov.
]]>You need to implement a ProfileService:
public class ProfileService : IProfileService
{
public ProfileService(
UserManager<PafUseruserManager)
{
_userManager = userManager;
}
public async Task GetProfileDataAsync(ProfileDataRequestContext context)
{
var user = await _userManager.GetUserAsync(context.Subject);
var claims = new List<Claim{
new Claim("custom_claim1", user.CustomClaim1),
…
The post Add custom claims to access token in IdentityServer4 appeared first on Svet Paregov.
]]>You need to implement a ProfileService:
public class ProfileService : IProfileService
{
public ProfileService(
UserManager<PafUseruserManager)
{
_userManager = userManager;
}
public async Task GetProfileDataAsync(ProfileDataRequestContext context)
{
var user = await _userManager.GetUserAsync(context.Subject);
var claims = new List<Claim{
new Claim("custom_claim1", user.CustomClaim1),
…The post Add custom claims to access token in IdentityServer4 appeared first on Svet Paregov.
]]>In my case I needed to create a corresponding object in another service on new user registration. To get the access token needed I have used IdentityServerTooks …
The post Issue access token to IdentityServer 4 from IdentityServer 4 appeared first on Svet Paregov.
]]>In my case I needed to create a corresponding object in another service on new user registration. To get the access token needed I have used IdentityServerTooks …
The post Issue access token to IdentityServer 4 from IdentityServer 4 appeared first on Svet Paregov.
]]>First you need to start the docker container. Here I am assuming you already have Docker installed and running. You can see the docker hub page here. It is up to you if you want to …
The post Setup PlantUML with docker and Visual Studio Code locally appeared first on Svet Paregov.
]]>First you need to start the docker container. Here I am assuming you already have Docker installed and running. You can see the docker hub page here. It is up to you if you want to …
The post Setup PlantUML with docker and Visual Studio Code locally appeared first on Svet Paregov.
]]>Here is the exception I have from the logs
HTTP POST /signin-oidc responded 500 in 77.6515 ms
System.Exception: An error was encountered while handling the remote login. —> System.Exception: Unable to unprotect the message.State. — End of inner exception stack trace — at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
As mentioned in the previous post – when I run from Visual …
The post Fix Unable to unprotect the message.State. exception on Identity Server redirect appeared first on Svet Paregov.
]]>Here is the exception I have from the logs
HTTP POST /signin-oidc responded 500 in 77.6515 ms
System.Exception: An error was encountered while handling the remote login. —> System.Exception: Unable to unprotect the message.State. — End of inner exception stack trace — at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
As mentioned in the previous post – when I run from Visual …
The post Fix Unable to unprotect the message.State. exception on Identity Server redirect appeared first on Svet Paregov.
]]>When I run the Identity Server 4 …
The post Solve identity server signin-oidc 502 Bad Gateway error appeared first on Svet Paregov.
]]>When I run the Identity Server 4 …
The post Solve identity server signin-oidc 502 Bad Gateway error appeared first on Svet Paregov.
]]>In my previous for Nginx and Nginx Proxy Manager (NPM), I wrote on how to install NPM, but didn’t configure any certificates.
Out of the box Nginx Proxy Manager supports Let’s Encrypt SSL auto creation and renewal.
There is one limitation – you can create certificates only for specific domains/subdomains directly. If you want to create wildcard certificate you will need to use DNS Challenge.
What does that mean? You need to use some DNS server that allows API …
The post Nginx Proxy Manager and Let’s Encrypt certificates appeared first on Svet Paregov.
]]>In my previous for Nginx and Nginx Proxy Manager (NPM), I wrote on how to install NPM, but didn’t configure any certificates.
Out of the box Nginx Proxy Manager supports Let’s Encrypt SSL auto creation and renewal.
There is one limitation – you can create certificates only for specific domains/subdomains directly. If you want to create wildcard certificate you will need to use DNS Challenge.
What does that mean? You need to use some DNS server that allows API …
The post Nginx Proxy Manager and Let’s Encrypt certificates appeared first on Svet Paregov.
]]>