mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-02 20:06:03 +02:00
core/authenticate: export internal definitions
This commit is contained in:
parent
c4dd965f2d
commit
ecbf0bd855
1 changed files with 16 additions and 1 deletions
|
@ -7,10 +7,25 @@ import (
|
||||||
identitypb "github.com/pomerium/pomerium/pkg/grpc/identity"
|
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 {
|
type authenticateConfig struct {
|
||||||
getIdentityProvider func(options *config.Options, idpID string) (identity.Authenticator, error)
|
getIdentityProvider func(options *config.Options, idpID string) (identity.Authenticator, error)
|
||||||
profileTrimFn func(*identitypb.Profile)
|
profileTrimFn func(*identitypb.Profile)
|
||||||
authEventFn authenticateflow.AuthEventFn
|
authEventFn AuthEventFn
|
||||||
}
|
}
|
||||||
|
|
||||||
// An Option customizes the Authenticate config.
|
// An Option customizes the Authenticate config.
|
||||||
|
|
Loading…
Add table
Reference in a new issue