{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.ELBV2.Types.AuthenticateOidcActionConfig where
import qualified Amazonka.Core as Core
import Amazonka.ELBV2.Types.AuthenticateOidcActionConditionalBehaviorEnum
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AuthenticateOidcActionConfig = AuthenticateOidcActionConfig'
{
AuthenticateOidcActionConfig -> Maybe Text
clientSecret :: Prelude.Maybe Prelude.Text,
AuthenticateOidcActionConfig -> Maybe Bool
useExistingClientSecret :: Prelude.Maybe Prelude.Bool,
:: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
AuthenticateOidcActionConfig -> Maybe Text
scope :: Prelude.Maybe Prelude.Text,
AuthenticateOidcActionConfig
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum
onUnauthenticatedRequest :: Prelude.Maybe AuthenticateOidcActionConditionalBehaviorEnum,
AuthenticateOidcActionConfig -> Maybe Text
sessionCookieName :: Prelude.Maybe Prelude.Text,
AuthenticateOidcActionConfig -> Maybe Integer
sessionTimeout :: Prelude.Maybe Prelude.Integer,
AuthenticateOidcActionConfig -> Text
issuer :: Prelude.Text,
AuthenticateOidcActionConfig -> Text
authorizationEndpoint :: Prelude.Text,
AuthenticateOidcActionConfig -> Text
tokenEndpoint :: Prelude.Text,
AuthenticateOidcActionConfig -> Text
userInfoEndpoint :: Prelude.Text,
AuthenticateOidcActionConfig -> Text
clientId :: Prelude.Text
}
deriving (AuthenticateOidcActionConfig
-> AuthenticateOidcActionConfig -> Bool
(AuthenticateOidcActionConfig
-> AuthenticateOidcActionConfig -> Bool)
-> (AuthenticateOidcActionConfig
-> AuthenticateOidcActionConfig -> Bool)
-> Eq AuthenticateOidcActionConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AuthenticateOidcActionConfig
-> AuthenticateOidcActionConfig -> Bool
$c/= :: AuthenticateOidcActionConfig
-> AuthenticateOidcActionConfig -> Bool
== :: AuthenticateOidcActionConfig
-> AuthenticateOidcActionConfig -> Bool
$c== :: AuthenticateOidcActionConfig
-> AuthenticateOidcActionConfig -> Bool
Prelude.Eq, ReadPrec [AuthenticateOidcActionConfig]
ReadPrec AuthenticateOidcActionConfig
Int -> ReadS AuthenticateOidcActionConfig
ReadS [AuthenticateOidcActionConfig]
(Int -> ReadS AuthenticateOidcActionConfig)
-> ReadS [AuthenticateOidcActionConfig]
-> ReadPrec AuthenticateOidcActionConfig
-> ReadPrec [AuthenticateOidcActionConfig]
-> Read AuthenticateOidcActionConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AuthenticateOidcActionConfig]
$creadListPrec :: ReadPrec [AuthenticateOidcActionConfig]
readPrec :: ReadPrec AuthenticateOidcActionConfig
$creadPrec :: ReadPrec AuthenticateOidcActionConfig
readList :: ReadS [AuthenticateOidcActionConfig]
$creadList :: ReadS [AuthenticateOidcActionConfig]
readsPrec :: Int -> ReadS AuthenticateOidcActionConfig
$creadsPrec :: Int -> ReadS AuthenticateOidcActionConfig
Prelude.Read, Int -> AuthenticateOidcActionConfig -> ShowS
[AuthenticateOidcActionConfig] -> ShowS
AuthenticateOidcActionConfig -> String
(Int -> AuthenticateOidcActionConfig -> ShowS)
-> (AuthenticateOidcActionConfig -> String)
-> ([AuthenticateOidcActionConfig] -> ShowS)
-> Show AuthenticateOidcActionConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AuthenticateOidcActionConfig] -> ShowS
$cshowList :: [AuthenticateOidcActionConfig] -> ShowS
show :: AuthenticateOidcActionConfig -> String
$cshow :: AuthenticateOidcActionConfig -> String
showsPrec :: Int -> AuthenticateOidcActionConfig -> ShowS
$cshowsPrec :: Int -> AuthenticateOidcActionConfig -> ShowS
Prelude.Show, (forall x.
AuthenticateOidcActionConfig -> Rep AuthenticateOidcActionConfig x)
-> (forall x.
Rep AuthenticateOidcActionConfig x -> AuthenticateOidcActionConfig)
-> Generic AuthenticateOidcActionConfig
forall x.
Rep AuthenticateOidcActionConfig x -> AuthenticateOidcActionConfig
forall x.
AuthenticateOidcActionConfig -> Rep AuthenticateOidcActionConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AuthenticateOidcActionConfig x -> AuthenticateOidcActionConfig
$cfrom :: forall x.
AuthenticateOidcActionConfig -> Rep AuthenticateOidcActionConfig x
Prelude.Generic)
newAuthenticateOidcActionConfig ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
AuthenticateOidcActionConfig
newAuthenticateOidcActionConfig :: Text
-> Text -> Text -> Text -> Text -> AuthenticateOidcActionConfig
newAuthenticateOidcActionConfig
Text
pIssuer_
Text
pAuthorizationEndpoint_
Text
pTokenEndpoint_
Text
pUserInfoEndpoint_
Text
pClientId_ =
AuthenticateOidcActionConfig' :: Maybe Text
-> Maybe Bool
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum
-> Maybe Text
-> Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig
AuthenticateOidcActionConfig'
{ $sel:clientSecret:AuthenticateOidcActionConfig' :: Maybe Text
clientSecret =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:useExistingClientSecret:AuthenticateOidcActionConfig' :: Maybe Bool
useExistingClientSecret = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:authenticationRequestExtraParams:AuthenticateOidcActionConfig' :: Maybe (HashMap Text Text)
authenticationRequestExtraParams =
Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:scope:AuthenticateOidcActionConfig' :: Maybe Text
scope = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:onUnauthenticatedRequest:AuthenticateOidcActionConfig' :: Maybe AuthenticateOidcActionConditionalBehaviorEnum
onUnauthenticatedRequest = Maybe AuthenticateOidcActionConditionalBehaviorEnum
forall a. Maybe a
Prelude.Nothing,
$sel:sessionCookieName:AuthenticateOidcActionConfig' :: Maybe Text
sessionCookieName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sessionTimeout:AuthenticateOidcActionConfig' :: Maybe Integer
sessionTimeout = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:issuer:AuthenticateOidcActionConfig' :: Text
issuer = Text
pIssuer_,
$sel:authorizationEndpoint:AuthenticateOidcActionConfig' :: Text
authorizationEndpoint =
Text
pAuthorizationEndpoint_,
$sel:tokenEndpoint:AuthenticateOidcActionConfig' :: Text
tokenEndpoint = Text
pTokenEndpoint_,
$sel:userInfoEndpoint:AuthenticateOidcActionConfig' :: Text
userInfoEndpoint = Text
pUserInfoEndpoint_,
$sel:clientId:AuthenticateOidcActionConfig' :: Text
clientId = Text
pClientId_
}
authenticateOidcActionConfig_clientSecret :: Lens.Lens' AuthenticateOidcActionConfig (Prelude.Maybe Prelude.Text)
authenticateOidcActionConfig_clientSecret :: (Maybe Text -> f (Maybe Text))
-> AuthenticateOidcActionConfig -> f AuthenticateOidcActionConfig
authenticateOidcActionConfig_clientSecret = (AuthenticateOidcActionConfig -> Maybe Text)
-> (AuthenticateOidcActionConfig
-> Maybe Text -> AuthenticateOidcActionConfig)
-> Lens
AuthenticateOidcActionConfig
AuthenticateOidcActionConfig
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthenticateOidcActionConfig' {Maybe Text
clientSecret :: Maybe Text
$sel:clientSecret:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Maybe Text
clientSecret} -> Maybe Text
clientSecret) (\s :: AuthenticateOidcActionConfig
s@AuthenticateOidcActionConfig' {} Maybe Text
a -> AuthenticateOidcActionConfig
s {$sel:clientSecret:AuthenticateOidcActionConfig' :: Maybe Text
clientSecret = Maybe Text
a} :: AuthenticateOidcActionConfig)
authenticateOidcActionConfig_useExistingClientSecret :: Lens.Lens' AuthenticateOidcActionConfig (Prelude.Maybe Prelude.Bool)
authenticateOidcActionConfig_useExistingClientSecret :: (Maybe Bool -> f (Maybe Bool))
-> AuthenticateOidcActionConfig -> f AuthenticateOidcActionConfig
authenticateOidcActionConfig_useExistingClientSecret = (AuthenticateOidcActionConfig -> Maybe Bool)
-> (AuthenticateOidcActionConfig
-> Maybe Bool -> AuthenticateOidcActionConfig)
-> Lens
AuthenticateOidcActionConfig
AuthenticateOidcActionConfig
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthenticateOidcActionConfig' {Maybe Bool
useExistingClientSecret :: Maybe Bool
$sel:useExistingClientSecret:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Maybe Bool
useExistingClientSecret} -> Maybe Bool
useExistingClientSecret) (\s :: AuthenticateOidcActionConfig
s@AuthenticateOidcActionConfig' {} Maybe Bool
a -> AuthenticateOidcActionConfig
s {$sel:useExistingClientSecret:AuthenticateOidcActionConfig' :: Maybe Bool
useExistingClientSecret = Maybe Bool
a} :: AuthenticateOidcActionConfig)
authenticateOidcActionConfig_authenticationRequestExtraParams :: Lens.Lens' AuthenticateOidcActionConfig (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
= (AuthenticateOidcActionConfig -> Maybe (HashMap Text Text))
-> (AuthenticateOidcActionConfig
-> Maybe (HashMap Text Text) -> AuthenticateOidcActionConfig)
-> Lens
AuthenticateOidcActionConfig
AuthenticateOidcActionConfig
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthenticateOidcActionConfig' {Maybe (HashMap Text Text)
authenticationRequestExtraParams :: Maybe (HashMap Text Text)
$sel:authenticationRequestExtraParams:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Maybe (HashMap Text Text)
authenticationRequestExtraParams} -> Maybe (HashMap Text Text)
authenticationRequestExtraParams) (\s :: AuthenticateOidcActionConfig
s@AuthenticateOidcActionConfig' {} Maybe (HashMap Text Text)
a -> AuthenticateOidcActionConfig
s {$sel:authenticationRequestExtraParams:AuthenticateOidcActionConfig' :: Maybe (HashMap Text Text)
authenticationRequestExtraParams = Maybe (HashMap Text Text)
a} :: AuthenticateOidcActionConfig) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> AuthenticateOidcActionConfig -> f AuthenticateOidcActionConfig)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> AuthenticateOidcActionConfig
-> f AuthenticateOidcActionConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
authenticateOidcActionConfig_scope :: Lens.Lens' AuthenticateOidcActionConfig (Prelude.Maybe Prelude.Text)
authenticateOidcActionConfig_scope :: (Maybe Text -> f (Maybe Text))
-> AuthenticateOidcActionConfig -> f AuthenticateOidcActionConfig
authenticateOidcActionConfig_scope = (AuthenticateOidcActionConfig -> Maybe Text)
-> (AuthenticateOidcActionConfig
-> Maybe Text -> AuthenticateOidcActionConfig)
-> Lens
AuthenticateOidcActionConfig
AuthenticateOidcActionConfig
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthenticateOidcActionConfig' {Maybe Text
scope :: Maybe Text
$sel:scope:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Maybe Text
scope} -> Maybe Text
scope) (\s :: AuthenticateOidcActionConfig
s@AuthenticateOidcActionConfig' {} Maybe Text
a -> AuthenticateOidcActionConfig
s {$sel:scope:AuthenticateOidcActionConfig' :: Maybe Text
scope = Maybe Text
a} :: AuthenticateOidcActionConfig)
authenticateOidcActionConfig_onUnauthenticatedRequest :: Lens.Lens' AuthenticateOidcActionConfig (Prelude.Maybe AuthenticateOidcActionConditionalBehaviorEnum)
authenticateOidcActionConfig_onUnauthenticatedRequest :: (Maybe AuthenticateOidcActionConditionalBehaviorEnum
-> f (Maybe AuthenticateOidcActionConditionalBehaviorEnum))
-> AuthenticateOidcActionConfig -> f AuthenticateOidcActionConfig
authenticateOidcActionConfig_onUnauthenticatedRequest = (AuthenticateOidcActionConfig
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum)
-> (AuthenticateOidcActionConfig
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum
-> AuthenticateOidcActionConfig)
-> Lens
AuthenticateOidcActionConfig
AuthenticateOidcActionConfig
(Maybe AuthenticateOidcActionConditionalBehaviorEnum)
(Maybe AuthenticateOidcActionConditionalBehaviorEnum)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthenticateOidcActionConfig' {Maybe AuthenticateOidcActionConditionalBehaviorEnum
onUnauthenticatedRequest :: Maybe AuthenticateOidcActionConditionalBehaviorEnum
$sel:onUnauthenticatedRequest:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum
onUnauthenticatedRequest} -> Maybe AuthenticateOidcActionConditionalBehaviorEnum
onUnauthenticatedRequest) (\s :: AuthenticateOidcActionConfig
s@AuthenticateOidcActionConfig' {} Maybe AuthenticateOidcActionConditionalBehaviorEnum
a -> AuthenticateOidcActionConfig
s {$sel:onUnauthenticatedRequest:AuthenticateOidcActionConfig' :: Maybe AuthenticateOidcActionConditionalBehaviorEnum
onUnauthenticatedRequest = Maybe AuthenticateOidcActionConditionalBehaviorEnum
a} :: AuthenticateOidcActionConfig)
authenticateOidcActionConfig_sessionCookieName :: Lens.Lens' AuthenticateOidcActionConfig (Prelude.Maybe Prelude.Text)
authenticateOidcActionConfig_sessionCookieName :: (Maybe Text -> f (Maybe Text))
-> AuthenticateOidcActionConfig -> f AuthenticateOidcActionConfig
authenticateOidcActionConfig_sessionCookieName = (AuthenticateOidcActionConfig -> Maybe Text)
-> (AuthenticateOidcActionConfig
-> Maybe Text -> AuthenticateOidcActionConfig)
-> Lens
AuthenticateOidcActionConfig
AuthenticateOidcActionConfig
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthenticateOidcActionConfig' {Maybe Text
sessionCookieName :: Maybe Text
$sel:sessionCookieName:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Maybe Text
sessionCookieName} -> Maybe Text
sessionCookieName) (\s :: AuthenticateOidcActionConfig
s@AuthenticateOidcActionConfig' {} Maybe Text
a -> AuthenticateOidcActionConfig
s {$sel:sessionCookieName:AuthenticateOidcActionConfig' :: Maybe Text
sessionCookieName = Maybe Text
a} :: AuthenticateOidcActionConfig)
authenticateOidcActionConfig_sessionTimeout :: Lens.Lens' AuthenticateOidcActionConfig (Prelude.Maybe Prelude.Integer)
authenticateOidcActionConfig_sessionTimeout :: (Maybe Integer -> f (Maybe Integer))
-> AuthenticateOidcActionConfig -> f AuthenticateOidcActionConfig
authenticateOidcActionConfig_sessionTimeout = (AuthenticateOidcActionConfig -> Maybe Integer)
-> (AuthenticateOidcActionConfig
-> Maybe Integer -> AuthenticateOidcActionConfig)
-> Lens
AuthenticateOidcActionConfig
AuthenticateOidcActionConfig
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthenticateOidcActionConfig' {Maybe Integer
sessionTimeout :: Maybe Integer
$sel:sessionTimeout:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Maybe Integer
sessionTimeout} -> Maybe Integer
sessionTimeout) (\s :: AuthenticateOidcActionConfig
s@AuthenticateOidcActionConfig' {} Maybe Integer
a -> AuthenticateOidcActionConfig
s {$sel:sessionTimeout:AuthenticateOidcActionConfig' :: Maybe Integer
sessionTimeout = Maybe Integer
a} :: AuthenticateOidcActionConfig)
authenticateOidcActionConfig_issuer :: Lens.Lens' AuthenticateOidcActionConfig Prelude.Text
authenticateOidcActionConfig_issuer :: (Text -> f Text)
-> AuthenticateOidcActionConfig -> f AuthenticateOidcActionConfig
authenticateOidcActionConfig_issuer = (AuthenticateOidcActionConfig -> Text)
-> (AuthenticateOidcActionConfig
-> Text -> AuthenticateOidcActionConfig)
-> Lens
AuthenticateOidcActionConfig AuthenticateOidcActionConfig Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthenticateOidcActionConfig' {Text
issuer :: Text
$sel:issuer:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Text
issuer} -> Text
issuer) (\s :: AuthenticateOidcActionConfig
s@AuthenticateOidcActionConfig' {} Text
a -> AuthenticateOidcActionConfig
s {$sel:issuer:AuthenticateOidcActionConfig' :: Text
issuer = Text
a} :: AuthenticateOidcActionConfig)
authenticateOidcActionConfig_authorizationEndpoint :: Lens.Lens' AuthenticateOidcActionConfig Prelude.Text
authenticateOidcActionConfig_authorizationEndpoint :: (Text -> f Text)
-> AuthenticateOidcActionConfig -> f AuthenticateOidcActionConfig
authenticateOidcActionConfig_authorizationEndpoint = (AuthenticateOidcActionConfig -> Text)
-> (AuthenticateOidcActionConfig
-> Text -> AuthenticateOidcActionConfig)
-> Lens
AuthenticateOidcActionConfig AuthenticateOidcActionConfig Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthenticateOidcActionConfig' {Text
authorizationEndpoint :: Text
$sel:authorizationEndpoint:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Text
authorizationEndpoint} -> Text
authorizationEndpoint) (\s :: AuthenticateOidcActionConfig
s@AuthenticateOidcActionConfig' {} Text
a -> AuthenticateOidcActionConfig
s {$sel:authorizationEndpoint:AuthenticateOidcActionConfig' :: Text
authorizationEndpoint = Text
a} :: AuthenticateOidcActionConfig)
authenticateOidcActionConfig_tokenEndpoint :: Lens.Lens' AuthenticateOidcActionConfig Prelude.Text
authenticateOidcActionConfig_tokenEndpoint :: (Text -> f Text)
-> AuthenticateOidcActionConfig -> f AuthenticateOidcActionConfig
authenticateOidcActionConfig_tokenEndpoint = (AuthenticateOidcActionConfig -> Text)
-> (AuthenticateOidcActionConfig
-> Text -> AuthenticateOidcActionConfig)
-> Lens
AuthenticateOidcActionConfig AuthenticateOidcActionConfig Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthenticateOidcActionConfig' {Text
tokenEndpoint :: Text
$sel:tokenEndpoint:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Text
tokenEndpoint} -> Text
tokenEndpoint) (\s :: AuthenticateOidcActionConfig
s@AuthenticateOidcActionConfig' {} Text
a -> AuthenticateOidcActionConfig
s {$sel:tokenEndpoint:AuthenticateOidcActionConfig' :: Text
tokenEndpoint = Text
a} :: AuthenticateOidcActionConfig)
authenticateOidcActionConfig_userInfoEndpoint :: Lens.Lens' AuthenticateOidcActionConfig Prelude.Text
authenticateOidcActionConfig_userInfoEndpoint :: (Text -> f Text)
-> AuthenticateOidcActionConfig -> f AuthenticateOidcActionConfig
authenticateOidcActionConfig_userInfoEndpoint = (AuthenticateOidcActionConfig -> Text)
-> (AuthenticateOidcActionConfig
-> Text -> AuthenticateOidcActionConfig)
-> Lens
AuthenticateOidcActionConfig AuthenticateOidcActionConfig Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthenticateOidcActionConfig' {Text
userInfoEndpoint :: Text
$sel:userInfoEndpoint:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Text
userInfoEndpoint} -> Text
userInfoEndpoint) (\s :: AuthenticateOidcActionConfig
s@AuthenticateOidcActionConfig' {} Text
a -> AuthenticateOidcActionConfig
s {$sel:userInfoEndpoint:AuthenticateOidcActionConfig' :: Text
userInfoEndpoint = Text
a} :: AuthenticateOidcActionConfig)
authenticateOidcActionConfig_clientId :: Lens.Lens' AuthenticateOidcActionConfig Prelude.Text
authenticateOidcActionConfig_clientId :: (Text -> f Text)
-> AuthenticateOidcActionConfig -> f AuthenticateOidcActionConfig
authenticateOidcActionConfig_clientId = (AuthenticateOidcActionConfig -> Text)
-> (AuthenticateOidcActionConfig
-> Text -> AuthenticateOidcActionConfig)
-> Lens
AuthenticateOidcActionConfig AuthenticateOidcActionConfig Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthenticateOidcActionConfig' {Text
clientId :: Text
$sel:clientId:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Text
clientId} -> Text
clientId) (\s :: AuthenticateOidcActionConfig
s@AuthenticateOidcActionConfig' {} Text
a -> AuthenticateOidcActionConfig
s {$sel:clientId:AuthenticateOidcActionConfig' :: Text
clientId = Text
a} :: AuthenticateOidcActionConfig)
instance Core.FromXML AuthenticateOidcActionConfig where
parseXML :: [Node] -> Either String AuthenticateOidcActionConfig
parseXML [Node]
x =
Maybe Text
-> Maybe Bool
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum
-> Maybe Text
-> Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig
AuthenticateOidcActionConfig'
(Maybe Text
-> Maybe Bool
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum
-> Maybe Text
-> Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum
-> Maybe Text
-> Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ClientSecret")
Either
String
(Maybe Bool
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum
-> Maybe Text
-> Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig)
-> Either String (Maybe Bool)
-> Either
String
(Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum
-> Maybe Text
-> Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"UseExistingClientSecret")
Either
String
(Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum
-> Maybe Text
-> Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig)
-> Either String (Maybe (HashMap Text Text))
-> Either
String
(Maybe Text
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum
-> Maybe Text
-> Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AuthenticationRequestExtraParams"
Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe (HashMap Text Text)))
-> Either String (Maybe (HashMap Text Text))
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String (HashMap Text Text))
-> [Node] -> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> Text -> Text -> [Node] -> Either String (HashMap Text Text)
forall k v.
(Eq k, Hashable k, FromText k, FromXML v) =>
Text -> Text -> Text -> [Node] -> Either String (HashMap k v)
Core.parseXMLMap Text
"entry" Text
"key" Text
"value")
)
Either
String
(Maybe Text
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum
-> Maybe Text
-> Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig)
-> Either String (Maybe Text)
-> Either
String
(Maybe AuthenticateOidcActionConditionalBehaviorEnum
-> Maybe Text
-> Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Scope")
Either
String
(Maybe AuthenticateOidcActionConditionalBehaviorEnum
-> Maybe Text
-> Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig)
-> Either
String (Maybe AuthenticateOidcActionConditionalBehaviorEnum)
-> Either
String
(Maybe Text
-> Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node]
-> Text
-> Either
String (Maybe AuthenticateOidcActionConditionalBehaviorEnum)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"OnUnauthenticatedRequest")
Either
String
(Maybe Text
-> Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig)
-> Either String (Maybe Text)
-> Either
String
(Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SessionCookieName")
Either
String
(Maybe Integer
-> Text
-> Text
-> Text
-> Text
-> Text
-> AuthenticateOidcActionConfig)
-> Either String (Maybe Integer)
-> Either
String
(Text
-> Text -> Text -> Text -> Text -> AuthenticateOidcActionConfig)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Integer)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SessionTimeout")
Either
String
(Text
-> Text -> Text -> Text -> Text -> AuthenticateOidcActionConfig)
-> Either String Text
-> Either
String
(Text -> Text -> Text -> Text -> AuthenticateOidcActionConfig)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"Issuer")
Either
String
(Text -> Text -> Text -> Text -> AuthenticateOidcActionConfig)
-> Either String Text
-> Either
String (Text -> Text -> Text -> AuthenticateOidcActionConfig)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"AuthorizationEndpoint")
Either
String (Text -> Text -> Text -> AuthenticateOidcActionConfig)
-> Either String Text
-> Either String (Text -> Text -> AuthenticateOidcActionConfig)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"TokenEndpoint")
Either String (Text -> Text -> AuthenticateOidcActionConfig)
-> Either String Text
-> Either String (Text -> AuthenticateOidcActionConfig)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"UserInfoEndpoint")
Either String (Text -> AuthenticateOidcActionConfig)
-> Either String Text -> Either String AuthenticateOidcActionConfig
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"ClientId")
instance
Prelude.Hashable
AuthenticateOidcActionConfig
instance Prelude.NFData AuthenticateOidcActionConfig
instance Core.ToQuery AuthenticateOidcActionConfig where
toQuery :: AuthenticateOidcActionConfig -> QueryString
toQuery AuthenticateOidcActionConfig' {Maybe Bool
Maybe Integer
Maybe Text
Maybe (HashMap Text Text)
Maybe AuthenticateOidcActionConditionalBehaviorEnum
Text
clientId :: Text
userInfoEndpoint :: Text
tokenEndpoint :: Text
authorizationEndpoint :: Text
issuer :: Text
sessionTimeout :: Maybe Integer
sessionCookieName :: Maybe Text
onUnauthenticatedRequest :: Maybe AuthenticateOidcActionConditionalBehaviorEnum
scope :: Maybe Text
authenticationRequestExtraParams :: Maybe (HashMap Text Text)
useExistingClientSecret :: Maybe Bool
clientSecret :: Maybe Text
$sel:clientId:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Text
$sel:userInfoEndpoint:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Text
$sel:tokenEndpoint:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Text
$sel:authorizationEndpoint:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Text
$sel:issuer:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Text
$sel:sessionTimeout:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Maybe Integer
$sel:sessionCookieName:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Maybe Text
$sel:onUnauthenticatedRequest:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum
$sel:scope:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Maybe Text
$sel:authenticationRequestExtraParams:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Maybe (HashMap Text Text)
$sel:useExistingClientSecret:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Maybe Bool
$sel:clientSecret:AuthenticateOidcActionConfig' :: AuthenticateOidcActionConfig -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"ClientSecret" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
clientSecret,
ByteString
"UseExistingClientSecret"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
useExistingClientSecret,
ByteString
"AuthenticationRequestExtraParams"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString
-> ByteString -> ByteString -> HashMap Text Text -> QueryString
forall k v.
(ToQuery k, ToQuery v) =>
ByteString
-> ByteString -> ByteString -> HashMap k v -> QueryString
Core.toQueryMap ByteString
"entry" ByteString
"key" ByteString
"value"
(HashMap Text Text -> QueryString)
-> Maybe (HashMap Text Text) -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
authenticationRequestExtraParams
),
ByteString
"Scope" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
scope,
ByteString
"OnUnauthenticatedRequest"
ByteString
-> Maybe AuthenticateOidcActionConditionalBehaviorEnum
-> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe AuthenticateOidcActionConditionalBehaviorEnum
onUnauthenticatedRequest,
ByteString
"SessionCookieName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
sessionCookieName,
ByteString
"SessionTimeout" ByteString -> Maybe Integer -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Integer
sessionTimeout,
ByteString
"Issuer" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
issuer,
ByteString
"AuthorizationEndpoint"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
authorizationEndpoint,
ByteString
"TokenEndpoint" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
tokenEndpoint,
ByteString
"UserInfoEndpoint" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
userInfoEndpoint,
ByteString
"ClientId" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
clientId
]