8000 Setting of `type` of `Argon2PasswordHashProviderFactory` is incorrect, · Issue #40232 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Setting of type of Argon2PasswordHashProviderFactory is incorrect, #40232
Closed
@RutgerLubbers

Description

@RutgerLubbers

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

authentication

Describe the bug

The type (i, d or id) is read from the configuration by the version key. This should be the type key.
In code:

@Override
public void init(Config.Scope config) {
    version = config.get(VERSION_KEY, Argon2Parameters.DEFAULT_VERSION);
    type = config.get(VERSION_KEY, Argon2Parameters.DEFAULT_TYPE);
    ...

this should be

@Override
public void init(Config.Scope config) {
    version = config.get(VERSION_KEY, Argon2Parameters.DEFAULT_VERSION);
    type = config.get(TYPE_KEY, Argon2Parameters.DEFAULT_TYPE);
    ...

Further there is a typo in cpuCoreSempahore, this should be cpuCoreSemaphore.

I can make a PR for both issues (well, one issue, one typo).

Version

26.2 / main

Regression

  • The issue is a regression

Expected behavior

The type should be read from the correct environment / configuration variable.

Actual behavior

It is read from the wrong variable.

How to Reproduce?

Try to configure the Argon2 type using the documented property, this will not work.

Anything else?

I can make a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0