|
|
@ -26,6 +26,7 @@ const ( |
|
|
|
ClientSession = "auth.client.session" |
|
|
|
ClientSession = "auth.client.session" |
|
|
|
ClientForm = "auth.client.form" |
|
|
|
ClientForm = "auth.client.form" |
|
|
|
ClientProxy = "auth.client.proxy" |
|
|
|
ClientProxy = "auth.client.proxy" |
|
|
|
|
|
|
|
ClientSAML = "auth.client.saml" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
const ( |
|
|
|
const ( |
|
|
@ -64,6 +65,8 @@ type Service interface { |
|
|
|
RegisterPostLoginHook(hook PostLoginHookFn, priority uint) |
|
|
|
RegisterPostLoginHook(hook PostLoginHookFn, priority uint) |
|
|
|
// RedirectURL will generate url that we can use to initiate auth flow for supported clients.
|
|
|
|
// RedirectURL will generate url that we can use to initiate auth flow for supported clients.
|
|
|
|
RedirectURL(ctx context.Context, client string, r *Request) (*Redirect, error) |
|
|
|
RedirectURL(ctx context.Context, client string, r *Request) (*Redirect, error) |
|
|
|
|
|
|
|
// RegisterClient will register a new authn.Client that can be used for authentication
|
|
|
|
|
|
|
|
RegisterClient(c Client) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type Client interface { |
|
|
|
type Client interface { |
|
|
|