{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.AmplifyBackend.Types.UpdateBackendAuthOAuthConfig
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.AmplifyBackend.Types.UpdateBackendAuthOAuthConfig where

import Amazonka.AmplifyBackend.Types.OAuthGrantType
import Amazonka.AmplifyBackend.Types.OAuthScopesElement
import Amazonka.AmplifyBackend.Types.SocialProviderSettings
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | The OAuth configurations for authenticating users into your Amplify app.
--
-- /See:/ 'newUpdateBackendAuthOAuthConfig' smart constructor.
data UpdateBackendAuthOAuthConfig = UpdateBackendAuthOAuthConfig'
  { -- | The Amazon Cognito domain prefix used to create a hosted UI for
    -- authentication.
    UpdateBackendAuthOAuthConfig -> Maybe Text
domainPrefix :: Prelude.Maybe Prelude.Text,
    -- | The OAuth grant type to allow app users to authenticate from your
    -- Amplify app.
    UpdateBackendAuthOAuthConfig -> Maybe OAuthGrantType
oAuthGrantType :: Prelude.Maybe OAuthGrantType,
    -- | The list of OAuth-related flows that can allow users to authenticate
    -- from your Amplify app.
    UpdateBackendAuthOAuthConfig -> Maybe [OAuthScopesElement]
oAuthScopes :: Prelude.Maybe [OAuthScopesElement],
    -- | Redirect URLs that OAuth uses when a user signs in to an Amplify app.
    UpdateBackendAuthOAuthConfig -> Maybe [Text]
redirectSignInURIs :: Prelude.Maybe [Prelude.Text],
    -- | Redirect URLs that OAuth uses when a user signs out of an Amplify app.
    UpdateBackendAuthOAuthConfig -> Maybe [Text]
redirectSignOutURIs :: Prelude.Maybe [Prelude.Text],
    -- | Describes third-party social federation configurations for allowing your
    -- users to sign in with OAuth.
    UpdateBackendAuthOAuthConfig -> Maybe SocialProviderSettings
socialProviderSettings :: Prelude.Maybe SocialProviderSettings
  }
  deriving (UpdateBackendAuthOAuthConfig
-> UpdateBackendAuthOAuthConfig -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateBackendAuthOAuthConfig
-> UpdateBackendAuthOAuthConfig -> Bool
$c/= :: UpdateBackendAuthOAuthConfig
-> UpdateBackendAuthOAuthConfig -> Bool
== :: UpdateBackendAuthOAuthConfig
-> UpdateBackendAuthOAuthConfig -> Bool
$c== :: UpdateBackendAuthOAuthConfig
-> UpdateBackendAuthOAuthConfig -> Bool
Prelude.Eq, ReadPrec [UpdateBackendAuthOAuthConfig]
ReadPrec UpdateBackendAuthOAuthConfig
Int -> ReadS UpdateBackendAuthOAuthConfig
ReadS [UpdateBackendAuthOAuthConfig]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateBackendAuthOAuthConfig]
$creadListPrec :: ReadPrec [UpdateBackendAuthOAuthConfig]
readPrec :: ReadPrec UpdateBackendAuthOAuthConfig
$creadPrec :: ReadPrec UpdateBackendAuthOAuthConfig
readList :: ReadS [UpdateBackendAuthOAuthConfig]
$creadList :: ReadS [UpdateBackendAuthOAuthConfig]
readsPrec :: Int -> ReadS UpdateBackendAuthOAuthConfig
$creadsPrec :: Int -> ReadS UpdateBackendAuthOAuthConfig
Prelude.Read, Int -> UpdateBackendAuthOAuthConfig -> ShowS
[UpdateBackendAuthOAuthConfig] -> ShowS
UpdateBackendAuthOAuthConfig -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateBackendAuthOAuthConfig] -> ShowS
$cshowList :: [UpdateBackendAuthOAuthConfig] -> ShowS
show :: UpdateBackendAuthOAuthConfig -> String
$cshow :: UpdateBackendAuthOAuthConfig -> String
showsPrec :: Int -> UpdateBackendAuthOAuthConfig -> ShowS
$cshowsPrec :: Int -> UpdateBackendAuthOAuthConfig -> ShowS
Prelude.Show, forall x.
Rep UpdateBackendAuthOAuthConfig x -> UpdateBackendAuthOAuthConfig
forall x.
UpdateBackendAuthOAuthConfig -> Rep UpdateBackendAuthOAuthConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateBackendAuthOAuthConfig x -> UpdateBackendAuthOAuthConfig
$cfrom :: forall x.
UpdateBackendAuthOAuthConfig -> Rep UpdateBackendAuthOAuthConfig x
Prelude.Generic)

-- |
-- Create a value of 'UpdateBackendAuthOAuthConfig' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'domainPrefix', 'updateBackendAuthOAuthConfig_domainPrefix' - The Amazon Cognito domain prefix used to create a hosted UI for
-- authentication.
--
-- 'oAuthGrantType', 'updateBackendAuthOAuthConfig_oAuthGrantType' - The OAuth grant type to allow app users to authenticate from your
-- Amplify app.
--
-- 'oAuthScopes', 'updateBackendAuthOAuthConfig_oAuthScopes' - The list of OAuth-related flows that can allow users to authenticate
-- from your Amplify app.
--
-- 'redirectSignInURIs', 'updateBackendAuthOAuthConfig_redirectSignInURIs' - Redirect URLs that OAuth uses when a user signs in to an Amplify app.
--
-- 'redirectSignOutURIs', 'updateBackendAuthOAuthConfig_redirectSignOutURIs' - Redirect URLs that OAuth uses when a user signs out of an Amplify app.
--
-- 'socialProviderSettings', 'updateBackendAuthOAuthConfig_socialProviderSettings' - Describes third-party social federation configurations for allowing your
-- users to sign in with OAuth.
newUpdateBackendAuthOAuthConfig ::
  UpdateBackendAuthOAuthConfig
newUpdateBackendAuthOAuthConfig :: UpdateBackendAuthOAuthConfig
newUpdateBackendAuthOAuthConfig =
  UpdateBackendAuthOAuthConfig'
    { $sel:domainPrefix:UpdateBackendAuthOAuthConfig' :: Maybe Text
domainPrefix =
        forall a. Maybe a
Prelude.Nothing,
      $sel:oAuthGrantType:UpdateBackendAuthOAuthConfig' :: Maybe OAuthGrantType
oAuthGrantType = forall a. Maybe a
Prelude.Nothing,
      $sel:oAuthScopes:UpdateBackendAuthOAuthConfig' :: Maybe [OAuthScopesElement]
oAuthScopes = forall a. Maybe a
Prelude.Nothing,
      $sel:redirectSignInURIs:UpdateBackendAuthOAuthConfig' :: Maybe [Text]
redirectSignInURIs = forall a. Maybe a
Prelude.Nothing,
      $sel:redirectSignOutURIs:UpdateBackendAuthOAuthConfig' :: Maybe [Text]
redirectSignOutURIs = forall a. Maybe a
Prelude.Nothing,
      $sel:socialProviderSettings:UpdateBackendAuthOAuthConfig' :: Maybe SocialProviderSettings
socialProviderSettings = forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Cognito domain prefix used to create a hosted UI for
-- authentication.
updateBackendAuthOAuthConfig_domainPrefix :: Lens.Lens' UpdateBackendAuthOAuthConfig (Prelude.Maybe Prelude.Text)
updateBackendAuthOAuthConfig_domainPrefix :: Lens' UpdateBackendAuthOAuthConfig (Maybe Text)
updateBackendAuthOAuthConfig_domainPrefix = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBackendAuthOAuthConfig' {Maybe Text
domainPrefix :: Maybe Text
$sel:domainPrefix:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe Text
domainPrefix} -> Maybe Text
domainPrefix) (\s :: UpdateBackendAuthOAuthConfig
s@UpdateBackendAuthOAuthConfig' {} Maybe Text
a -> UpdateBackendAuthOAuthConfig
s {$sel:domainPrefix:UpdateBackendAuthOAuthConfig' :: Maybe Text
domainPrefix = Maybe Text
a} :: UpdateBackendAuthOAuthConfig)

-- | The OAuth grant type to allow app users to authenticate from your
-- Amplify app.
updateBackendAuthOAuthConfig_oAuthGrantType :: Lens.Lens' UpdateBackendAuthOAuthConfig (Prelude.Maybe OAuthGrantType)
updateBackendAuthOAuthConfig_oAuthGrantType :: Lens' UpdateBackendAuthOAuthConfig (Maybe OAuthGrantType)
updateBackendAuthOAuthConfig_oAuthGrantType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBackendAuthOAuthConfig' {Maybe OAuthGrantType
oAuthGrantType :: Maybe OAuthGrantType
$sel:oAuthGrantType:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe OAuthGrantType
oAuthGrantType} -> Maybe OAuthGrantType
oAuthGrantType) (\s :: UpdateBackendAuthOAuthConfig
s@UpdateBackendAuthOAuthConfig' {} Maybe OAuthGrantType
a -> UpdateBackendAuthOAuthConfig
s {$sel:oAuthGrantType:UpdateBackendAuthOAuthConfig' :: Maybe OAuthGrantType
oAuthGrantType = Maybe OAuthGrantType
a} :: UpdateBackendAuthOAuthConfig)

-- | The list of OAuth-related flows that can allow users to authenticate
-- from your Amplify app.
updateBackendAuthOAuthConfig_oAuthScopes :: Lens.Lens' UpdateBackendAuthOAuthConfig (Prelude.Maybe [OAuthScopesElement])
updateBackendAuthOAuthConfig_oAuthScopes :: Lens' UpdateBackendAuthOAuthConfig (Maybe [OAuthScopesElement])
updateBackendAuthOAuthConfig_oAuthScopes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBackendAuthOAuthConfig' {Maybe [OAuthScopesElement]
oAuthScopes :: Maybe [OAuthScopesElement]
$sel:oAuthScopes:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe [OAuthScopesElement]
oAuthScopes} -> Maybe [OAuthScopesElement]
oAuthScopes) (\s :: UpdateBackendAuthOAuthConfig
s@UpdateBackendAuthOAuthConfig' {} Maybe [OAuthScopesElement]
a -> UpdateBackendAuthOAuthConfig
s {$sel:oAuthScopes:UpdateBackendAuthOAuthConfig' :: Maybe [OAuthScopesElement]
oAuthScopes = Maybe [OAuthScopesElement]
a} :: UpdateBackendAuthOAuthConfig) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Redirect URLs that OAuth uses when a user signs in to an Amplify app.
updateBackendAuthOAuthConfig_redirectSignInURIs :: Lens.Lens' UpdateBackendAuthOAuthConfig (Prelude.Maybe [Prelude.Text])
updateBackendAuthOAuthConfig_redirectSignInURIs :: Lens' UpdateBackendAuthOAuthConfig (Maybe [Text])
updateBackendAuthOAuthConfig_redirectSignInURIs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBackendAuthOAuthConfig' {Maybe [Text]
redirectSignInURIs :: Maybe [Text]
$sel:redirectSignInURIs:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe [Text]
redirectSignInURIs} -> Maybe [Text]
redirectSignInURIs) (\s :: UpdateBackendAuthOAuthConfig
s@UpdateBackendAuthOAuthConfig' {} Maybe [Text]
a -> UpdateBackendAuthOAuthConfig
s {$sel:redirectSignInURIs:UpdateBackendAuthOAuthConfig' :: Maybe [Text]
redirectSignInURIs = Maybe [Text]
a} :: UpdateBackendAuthOAuthConfig) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Redirect URLs that OAuth uses when a user signs out of an Amplify app.
updateBackendAuthOAuthConfig_redirectSignOutURIs :: Lens.Lens' UpdateBackendAuthOAuthConfig (Prelude.Maybe [Prelude.Text])
updateBackendAuthOAuthConfig_redirectSignOutURIs :: Lens' UpdateBackendAuthOAuthConfig (Maybe [Text])
updateBackendAuthOAuthConfig_redirectSignOutURIs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBackendAuthOAuthConfig' {Maybe [Text]
redirectSignOutURIs :: Maybe [Text]
$sel:redirectSignOutURIs:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe [Text]
redirectSignOutURIs} -> Maybe [Text]
redirectSignOutURIs) (\s :: UpdateBackendAuthOAuthConfig
s@UpdateBackendAuthOAuthConfig' {} Maybe [Text]
a -> UpdateBackendAuthOAuthConfig
s {$sel:redirectSignOutURIs:UpdateBackendAuthOAuthConfig' :: Maybe [Text]
redirectSignOutURIs = Maybe [Text]
a} :: UpdateBackendAuthOAuthConfig) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Describes third-party social federation configurations for allowing your
-- users to sign in with OAuth.
updateBackendAuthOAuthConfig_socialProviderSettings :: Lens.Lens' UpdateBackendAuthOAuthConfig (Prelude.Maybe SocialProviderSettings)
updateBackendAuthOAuthConfig_socialProviderSettings :: Lens' UpdateBackendAuthOAuthConfig (Maybe SocialProviderSettings)
updateBackendAuthOAuthConfig_socialProviderSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBackendAuthOAuthConfig' {Maybe SocialProviderSettings
socialProviderSettings :: Maybe SocialProviderSettings
$sel:socialProviderSettings:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe SocialProviderSettings
socialProviderSettings} -> Maybe SocialProviderSettings
socialProviderSettings) (\s :: UpdateBackendAuthOAuthConfig
s@UpdateBackendAuthOAuthConfig' {} Maybe SocialProviderSettings
a -> UpdateBackendAuthOAuthConfig
s {$sel:socialProviderSettings:UpdateBackendAuthOAuthConfig' :: Maybe SocialProviderSettings
socialProviderSettings = Maybe SocialProviderSettings
a} :: UpdateBackendAuthOAuthConfig)

instance
  Prelude.Hashable
    UpdateBackendAuthOAuthConfig
  where
  hashWithSalt :: Int -> UpdateBackendAuthOAuthConfig -> Int
hashWithSalt Int
_salt UpdateBackendAuthOAuthConfig' {Maybe [Text]
Maybe [OAuthScopesElement]
Maybe Text
Maybe OAuthGrantType
Maybe SocialProviderSettings
socialProviderSettings :: Maybe SocialProviderSettings
redirectSignOutURIs :: Maybe [Text]
redirectSignInURIs :: Maybe [Text]
oAuthScopes :: Maybe [OAuthScopesElement]
oAuthGrantType :: Maybe OAuthGrantType
domainPrefix :: Maybe Text
$sel:socialProviderSettings:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe SocialProviderSettings
$sel:redirectSignOutURIs:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe [Text]
$sel:redirectSignInURIs:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe [Text]
$sel:oAuthScopes:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe [OAuthScopesElement]
$sel:oAuthGrantType:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe OAuthGrantType
$sel:domainPrefix:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
domainPrefix
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OAuthGrantType
oAuthGrantType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [OAuthScopesElement]
oAuthScopes
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
redirectSignInURIs
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
redirectSignOutURIs
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SocialProviderSettings
socialProviderSettings

instance Prelude.NFData UpdateBackendAuthOAuthConfig where
  rnf :: UpdateBackendAuthOAuthConfig -> ()
rnf UpdateBackendAuthOAuthConfig' {Maybe [Text]
Maybe [OAuthScopesElement]
Maybe Text
Maybe OAuthGrantType
Maybe SocialProviderSettings
socialProviderSettings :: Maybe SocialProviderSettings
redirectSignOutURIs :: Maybe [Text]
redirectSignInURIs :: Maybe [Text]
oAuthScopes :: Maybe [OAuthScopesElement]
oAuthGrantType :: Maybe OAuthGrantType
domainPrefix :: Maybe Text
$sel:socialProviderSettings:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe SocialProviderSettings
$sel:redirectSignOutURIs:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe [Text]
$sel:redirectSignInURIs:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe [Text]
$sel:oAuthScopes:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe [OAuthScopesElement]
$sel:oAuthGrantType:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe OAuthGrantType
$sel:domainPrefix:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
domainPrefix
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OAuthGrantType
oAuthGrantType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [OAuthScopesElement]
oAuthScopes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
redirectSignInURIs
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
redirectSignOutURIs
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SocialProviderSettings
socialProviderSettings

instance Data.ToJSON UpdateBackendAuthOAuthConfig where
  toJSON :: UpdateBackendAuthOAuthConfig -> Value
toJSON UpdateBackendAuthOAuthConfig' {Maybe [Text]
Maybe [OAuthScopesElement]
Maybe Text
Maybe OAuthGrantType
Maybe SocialProviderSettings
socialProviderSettings :: Maybe SocialProviderSettings
redirectSignOutURIs :: Maybe [Text]
redirectSignInURIs :: Maybe [Text]
oAuthScopes :: Maybe [OAuthScopesElement]
oAuthGrantType :: Maybe OAuthGrantType
domainPrefix :: Maybe Text
$sel:socialProviderSettings:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe SocialProviderSettings
$sel:redirectSignOutURIs:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe [Text]
$sel:redirectSignInURIs:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe [Text]
$sel:oAuthScopes:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe [OAuthScopesElement]
$sel:oAuthGrantType:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe OAuthGrantType
$sel:domainPrefix:UpdateBackendAuthOAuthConfig' :: UpdateBackendAuthOAuthConfig -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"domainPrefix" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
domainPrefix,
            (Key
"oAuthGrantType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OAuthGrantType
oAuthGrantType,
            (Key
"oAuthScopes" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [OAuthScopesElement]
oAuthScopes,
            (Key
"redirectSignInURIs" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
redirectSignInURIs,
            (Key
"redirectSignOutURIs" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
redirectSignOutURIs,
            (Key
"socialProviderSettings" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SocialProviderSettings
socialProviderSettings
          ]
      )