-
-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OCI: Add an authenticator for OCI remotes
Given a configuration like: [remote "oci-remote"] url=oci+http:https://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
- Loading branch information
1 parent
461a592
commit d25f65e
Showing
6 changed files
with
441 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
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 |
Oops, something went wrong.