alexbruf/elm-clerk/2.0.0

Clerk.EnterpriseConnection

The Clerk enterprise connection resource, the SSO connection behind an enterprise account.

{ id : Maybe String
, active : Bool
, allowIdpInitiated : Bool
, allowSubdomains : Bool
, disableAdditionalIdentifications : Bool
, domain : String
, logoPublicUrl : Maybe String
, name : String
, protocol : String
, provider : String
, syncUserAttributes : Bool
, allowOrganizationAccountLinking : Bool
, enterpriseConnectionId : Maybe String
}

One enterprise SSO connection.

protocol is for example "saml", and provider names the identity provider.

decoder : Decoder EnterpriseConnection

Decode an EnterpriseConnection from the JSON the shim sends.

{ "id": "conn_1"
, "active": true
, "allowIdpInitiated": false
, "allowSubdomains": true
, "disableAdditionalIdentifications": false
, "domain": "acme.test"
, "logoPublicUrl": "https://img.clerk.com/acme"
, "name": "Acme SAML"
, "protocol": "saml"
, "provider": "saml_okta"
, "syncUserAttributes": true
, "allowOrganizationAccountLinking": true
, "enterpriseConnectionId": "conn_1"
}