From d395901e805f10f1b6d3ed1867f728201d33e981 Mon Sep 17 00:00:00 2001 From: Karl Persson Date: Thu, 2 Feb 2023 10:09:52 +0100 Subject: [PATCH] AuthN: Expose RegisterClient and add client name for saml (#62604) * AuthN: add RegisterClient to service interface * AuthN: Add client name for saml --- pkg/services/authn/authn.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/services/authn/authn.go b/pkg/services/authn/authn.go index 0a762fd9c53..65d8b31f912 100644 --- a/pkg/services/authn/authn.go +++ b/pkg/services/authn/authn.go @@ -26,6 +26,7 @@ const ( ClientSession = "auth.client.session" ClientForm = "auth.client.form" ClientProxy = "auth.client.proxy" + ClientSAML = "auth.client.saml" ) const ( @@ -64,6 +65,8 @@ type Service interface { RegisterPostLoginHook(hook PostLoginHookFn, priority uint) // 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) + // RegisterClient will register a new authn.Client that can be used for authentication + RegisterClient(c Client) } type Client interface {