22 lines
608 B
C#
22 lines
608 B
C#
using maintenance.Authentication.Abstractions;
|
|
using maintenance.Authentication.Configuration;
|
|
using Microsoft.AspNetCore.Authentication;
|
|
|
|
namespace maintenance.Authentication.Providers.Oidc;
|
|
|
|
public sealed class OidcAuthProvider : IAuthProvider
|
|
{
|
|
public const string Scheme = "oidc";
|
|
|
|
public string Mode => AuthModes.Oidc;
|
|
|
|
public AuthenticationBuilder Configure(
|
|
AuthenticationBuilder builder,
|
|
IConfiguration configuration)
|
|
{
|
|
throw new NotSupportedException(
|
|
"OIDC provider is not implemented yet. Set AUTH_MODE=WSFED for current deployment.");
|
|
}
|
|
}
|
|
|