Commit fcc1b59b authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Download default schemes (pbdf and irma-demo) if none are given


Co-authored-by: Tomas's avatarConfiks <confiks@scriptbase.org>
parent a4b62d72
......@@ -35,6 +35,12 @@ func Initialize(configuration *server.Configuration) error {
if err = conf.IrmaConfiguration.ParseFolder(); err != nil {
return err
}
if len(conf.IrmaConfiguration.SchemeManagers) == 0 {
conf.Logger.Info("No schemes found in irma_configuration, downloading default schemes")
if err := conf.IrmaConfiguration.DownloadDefaultSchemes(); err != nil {
return err
}
}
}
if conf.IssuerPrivateKeys == nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment