You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am playing with this to better understand using Yarp with Keycloak. I have got most of it working, but I have two issues, and to be honest, they may be related.
In the appsettings, near the top is the APIs section. Can someone please explain the purpose of these and where I should get the values?
Secondly, I don't have an API as such behind YARP; I have a Blazor Server App. Later I will be adding more APIs and more Blazor apps, but for now there is a single Blazor app. I want user validation done in Yarp, which I how figured out, and we have an access token. But this token does not seem to be passed to the Blazor App. In my Blazor app if have the following, which I thought would pick up the JWT and use it.
builder.Services.AddAuthentication("Bearer")
.AddJwtBearer("Bearer", options =>
{
options.Authority = "http://192.168.100.84:8080/";
options.RequireHttpsMetadata = false;
options.TokenValidationParameters = new TokenValidationParameters
{
ValidateAudience = false // depending on your setup
};
});
Please can someone help with what I am missing.
The text was updated successfully, but these errors were encountered:
I am playing with this to better understand using Yarp with Keycloak. I have got most of it working, but I have two issues, and to be honest, they may be related.
In the appsettings, near the top is the APIs section. Can someone please explain the purpose of these and where I should get the values?
Secondly, I don't have an API as such behind YARP; I have a Blazor Server App. Later I will be adding more APIs and more Blazor apps, but for now there is a single Blazor app. I want user validation done in Yarp, which I how figured out, and we have an access token. But this token does not seem to be passed to the Blazor App. In my Blazor app if have the following, which I thought would pick up the JWT and use it.
Please can someone help with what I am missing.
The text was updated successfully, but these errors were encountered: