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

New "universal" authenticator for types "dynamic" and "function" #1808

Open
oberstet opened this issue Aug 18, 2020 · 1 comment
Open

New "universal" authenticator for types "dynamic" and "function" #1808

oberstet opened this issue Aug 18, 2020 · 1 comment

Comments

@oberstet
Copy link
Contributor

currently, when one wants to configure dynamic or function based authenticators, this needs to be declared for each authmethod that is desired.

writing authenticators that work for any authmethod would be more convenient.

we can do this with a new universal authenticator, instead of

"auth": {
    "anonymous": {
        "type": "function",
        "create": "authenticator.create_authenticator",
        "expose_controller": true,
        "config": {
            "dbname": "foo"
        }
    },
    "cryptosign": {
        "type": "function",
        "create": "authenticator.create_authenticator",
        "expose_controller": true,
        "config": {
            "dbname": "foo"
        }
    },
    "scram": {
        "type": "function",
        "create": "authenticator.create_authenticator",
        "expose_controller": true,
        "config": {
            "dbname": "foo"
        }
    }
}

we could have

"auth": {
    "universal": {
        "type": "function",
        "create": "authenticator.create_authenticator",
        "expose_controller": true,
        "config": {
            "dbname": "foo"
        }
    }
}
@oberstet
Copy link
Contributor Author

see also #1807

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

No branches or pull requests

1 participant