PowerDNS-Admin

OAuth Authentication

Microsoft Azure

To link to Azure for authentication, you need to register PowerDNS-Admin in Azure. This requires your PowerDNS-Admin web interface to use an HTTPS URL.

Now you can enable the OAuth in PowerDNS-Admin.

This should allow you to log in using OAuth.

Keycloak

To link to Keycloak for authentication, you need to create a new client in the Keycloak Administration Console.

OpenID Connect OAuth

To link to oidc service for authenticationregister your PowerDNS-Admin in the OIDC Provider. This requires your PowerDNS-Admin web interface to use an HTTPS URL.

Enable OpenID Connect OAuth option.

To create accounts on oidc login use the following properties:

If we get a variable named “groups” and “groups_description” from our IdP. This variable contains groups that the user is a part of. We will put the variable name “groups” in the “Name Property” and “groups_description” in the “Description Property”. This will result in the following account being created: Input we get from the Idp:

{
	"preferred_username": "example_username",
	"given_name": "example_firstame",
	"family_name": "example_lastname",
	"email": "example_email",
	"groups": ["github", "gitlab"]
	"groups_description": ["github.com", "gitlab.com"]
}

The user properties will be:

Username: customer_username
First Name: customer_firstame
Last Name: customer_lastname
Email: customer_email
Role: User

The groups properties will be:

Name: github Description: github.com Members: example_username
Name: gitlab Description: gitlab.com Members: example_username

If the option “delete_sso_accounts” is turned on the user will only be apart of groups the IdP provided and removed from all other accoubnts.