package com.cameleer.server.app.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

@Schema(description = "OIDC configuration for SPA login flow")
public record OidcPublicConfigResponse(
        @NotNull String issuer,
        @NotNull String clientId,
        @NotNull String authorizationEndpoint,
        @Schema(description = "Present if the provider supports RP-initiated logout")
        String endSessionEndpoint,
        @Schema(description = "RFC 8707 resource indicator for the authorization request")
        String resource,
        @Schema(description = "Additional scopes to request beyond openid email profile")
        java.util.List<String> additionalScopes
) {}
