Working with Credentials
This tour illustrates the basic handling of credentials
using the OCM library. The library provides
an extensible framework to bring together credential providers
and credential cosunmers in a technology-agnostic way.
It covers four basic scenarios:
basic Writing to a repository with directly specified credentials.
generic Using credentials via the credential management.
read Read the previously component version using the credential management.
credrepo Providing credentials via credential repositories.
You can just call the main program with some config file option (--config <file>) and the name of the scenario.
The config file should have the following content:
repository: ghcr.io/mandelsoft/ocm
username:
password: