IDP
| Component | Available in version |
|---|---|
| Organization | v1.0 |
An Organization can let users sign in via an external identity provider instead of, or alongside, native Synkzone accounts. Two kinds of identity provider are supported: a Generic OIDC provider (any corporate IdP speaking OpenID Connect), and Swedish BankID (via GrandID). This is an optional plugin.
Info
Most Organizations using an external IDP for sign-in also use SCIM to provision the underlying user accounts from the same directory. The two are configured independently, but are commonly set up together.
Generic OIDC
Prerequisites
- An OIDC client registered at the identity provider.
- The client ID and client secret for that registration.
- The following redirect URLs registered at the identity provider:
<Organization's Synkzone Web URL>/authhttps://synkzone.com/auth
Configuration
- Point the Organization Server at the identity provider. In
main/config/server.config, setIDPType=GenericOIDCandIDPIssuerURLto the provider's issuer URL. This value must exactly match the one specified by the identity provider. See server.config for the full property list. - Set the client ID. Set
IDPClientIdto the registered client ID. - Add the client secret. Add the client secret to a file and point
OAuthClientSecret.pathat it. - (Optional) Override the defaults. Set
IDPName(defaults to the hostname fromIDPIssuerURL) andIDPUserIdClaim(defaults tosub) if the defaults do not fit. - (Optional) Enable auto-provisioning. Set
AutoCreateIDPUsers=trueto automatically create Synkzone accounts for users signing in via the IDP for the first time. - Restart the
maincomponent for the configuration to take effect.
Note
If the identity provider exposes a .well-known/openid-configuration endpoint at IDPIssuerURL, most of the remaining OIDC configuration is discovered automatically. Without it, the IDP may still work using standard defaults.
Example configuration
IDPType=GenericOIDC
IDPIssuerURL=https://login.example.com
IDPClientId=ex4mpl3-client-id
IDPName=My IDP
IDPUserIdClaim=sub
OAuthClientSecret.path=/config/oauth-client-secret
AutoCreateIDPUsers=true
ExAmPlEcLiEnTsEcReT1234567890abcdefgh
Swedish BankID
Prerequisites
- A GrandID account and API key.
- A BankID key from GrandID.
Configuration
- Configure the GrandID connection. In
main/config/server.config, setGrandIdAPIto the GrandID API endpoint, andPersonalIdentificationTypes(for exampleSWEDISH_MOBILE_BANK_ID). See server.config for the full property list. - Add the GrandID API key. Add the key to a file and point
GrandIdAPIKey.pathat it. - Add the BankID key. Add the key to a file and point
GrandIdBankIdKey.pathat it. - Restart the
maincomponent for the configuration to take effect.
Example configuration
GrandIdAPI=https://client.grandid.com/json1.1
GrandIdAPIKey.path=/config/grandid-api-key
GrandIdBankIdKey.path=/config/grandid-bankid-key
PersonalIdentificationTypes=SWEDISH_MOBILE_BANK_ID
ExAmPlEgRaNdIdApIkEy1234567890
ExAmPlEgRaNdIdBaNkIdKeY1234567890