Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty claims with OIDC provider on Authentik #561

Open
tboerger opened this issue May 31, 2024 · 1 comment
Open

Empty claims with OIDC provider on Authentik #561

tboerger opened this issue May 31, 2024 · 1 comment

Comments

@tboerger
Copy link

I try to implement Goth with generic OIDC providers like Authentik. The configurations for GitHub, AzureAD and Keycloak are working totally finbe, but with Authentik and the configuration below results in empty claims as I don't get a nickname, email or name of the authenticated user.

Has somebody else faced this issue and got an idea how to resolve that? If there is some information missing I try my best to deliver the missing parts.

	provider, err := openidConnect.NewNamed(
		"authentik",
		"REDACTED",
		"REDACTED",
		"http://localhost:8080/api/v1/auth/authentik-oidc/callback",
		"https://authentik.example.com/application/o/example/.well-known/openid-configuration",
		[]string{},
	)

	if err != nil {
		return nil, err
	}

	provider.NickNameClaims = []string{
		"preferred_username",
	}

	provider.NameClaims = []string{
		"name",
	}

	provider.EmailClaims = []string{
		"email",
	}
@tboerger
Copy link
Author

I have also tried it with the discovery URL set to https://authentik.example.com/application/o/example/ which got the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant