mirror of
https://github.com/storytold/irsa-manager.git
synced 2026-10-28 08:47:48 +00:00
force update if the selfhosted process ends midway
This commit is contained in:
@@ -2,7 +2,7 @@ package selfhosted
|
||||
|
||||
import "context"
|
||||
|
||||
func Execute(ctx context.Context, factory OIDCIdPFactory) error {
|
||||
func Execute(ctx context.Context, factory OIDCIdPFactory, forceUpdate bool) error {
|
||||
issuerMeta := factory.IssuerMeta()
|
||||
discovery := factory.IdPDiscovery()
|
||||
discoveryContents := factory.IdPDiscoveryContents(issuerMeta)
|
||||
@@ -14,7 +14,7 @@ func Execute(ctx context.Context, factory OIDCIdPFactory) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = discovery.Upload(ctx, discoveryContents)
|
||||
err = discovery.Upload(ctx, discoveryContents, forceUpdate)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user