<reponame>ita14/measurements-app<filename>src/measurements-api/Measurements.Api/Config/AuthConfig.cs﻿using Keycloak.AuthServices.Authentication;

namespace Measurements.Api.Config;

public static class AuthConfig
{
    public static void AddKeycloakAuth(this WebApplicationBuilder builder)
    {
        builder.Services.AddKeycloakAuthentication(builder.Configuration, o =>
        {
            o.RequireHttpsMetadata = false;
        });
    }
}
