Files
flatpak/oci-authenticator/Makefile.am.inc
Alexander Larsson d25f65e968 OCI: Add an authenticator for OCI remotes
Given a configuration like:

[remote "oci-remote"]
url=oci+http://some.server.com/api/v1/organization/foo?index=labels
xa.authenticator-name=org.flatpak.Authenticator.Oci
xa.default-token-type=1
xa.authenticator-options={"auth": <"a-token-here">}

I was able to install an app from an OCI remote that required a login
2019-12-12 12:16:53 +01:00

29 lines
993 B
PHP

libexec_PROGRAMS += \
flatpak-oci-authenticator \
$(NULL)
service_in_files += oci-authenticator/flatpak-oci-authenticator.service.in
systemduserunit_DATA += oci-authenticator/flatpak-oci-authenticator.service
service_in_files += oci-authenticator/org.flatpak.Authenticator.Oci.service.in
dbus_service_DATA += oci-authenticator/org.flatpak.Authenticator.Oci.service
flatpak_oci_authenticator_SOURCES = \
oci-authenticator/flatpak-oci-authenticator.c \
$(NULL)
BUILT_SOURCES += $(nodist_flatpak_oci_authenticator_SOURCES)
CLEANFILES += $(nodist_flatpak_oci_authenticator_SOURCES)
flatpak_oci_authenticator_LDADD = $(AM_LDADD) $(BASE_LIBS) $(OSTREE_LIBS) libflatpak-common.la libflatpak-common-base.la libglnx.la
flatpak_oci_authenticator_CFLAGS = \
$(AM_CFLAGS) \
$(BASE_CFLAGS) \
$(OSTREE_CFLAGS) \
$(SOUP_CFLAGS) \
$(JSON_CFLAGS) \
-DFLATPAK_COMPILATION \
-DDATADIR=\"$(datadir)\" \
$(NULL)
flatpak_oci_authenticator_CPPFLAGS = $(AM_CPPFLAGS) -I$(builddir)/oci-authenticator