From ecbf0bd8554f4270b9d7662567f3d8c6bcac1bd2 Mon Sep 17 00:00:00 2001 From: Caleb Doxsey Date: Mon, 11 Dec 2023 12:24:07 -0700 Subject: [PATCH] core/authenticate: export internal definitions --- authenticate/config.go | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/authenticate/config.go b/authenticate/config.go index a1f9a8ecd..b4217c8e0 100644 --- a/authenticate/config.go +++ b/authenticate/config.go @@ -7,10 +7,25 @@ import ( identitypb "github.com/pomerium/pomerium/pkg/grpc/identity" ) +type ( + // AuthEventKind is the authenticateflow.AuthEventKind. + AuthEventKind = authenticateflow.AuthEventKind + // AuthEvent is the authenticateflow.AuthEvent. + AuthEvent = authenticateflow.AuthEvent + // AuthEventFn is the authenticateflow.AuthEventFn. + AuthEventFn = authenticateflow.AuthEventFn +) + +// re-export constants +const ( + AuthEventSignInRequest = authenticateflow.AuthEventSignInRequest + AuthEventSignInComplete = authenticateflow.AuthEventSignInComplete +) + type authenticateConfig struct { getIdentityProvider func(options *config.Options, idpID string) (identity.Authenticator, error) profileTrimFn func(*identitypb.Profile) - authEventFn authenticateflow.AuthEventFn + authEventFn AuthEventFn } // An Option customizes the Authenticate config.