Authentication type parameter seems to accept too many values
See original GitHub issueI noticed the allowed values for the authentication type parameter are being filtered down during runtime, but the type itself seems to accept string values, and even undefined.
I’m wondering whether the type of the authentication.type parameter can instead be set to something like
type AuthenticationType = 'default' | 'ntlm' | 'azure-active-directory-password' | 'azure-active-directory-access-token' | 'azure-active-directory-msi-vm' | 'azure-active-directory-msi-app-service' | 'azure-active-directory-service-principal-secret'
// ...
type: AuthenticationType;
This way, users would know exactly which values are valid for a given version of tedious.
Issue Analytics
- State:
 - Created 2 years ago
 - Comments:5 (3 by maintainers)
 
Top Results From Across the Web
Kerberos authentication problems - Windows Server
Describes an issue in which a user who has too many group memberships cannot authenticate successfully. Describes the factors that cause the ...
Read more >"Too many values to unpack" while getting Django form out of ...
The problem is that you're not passing in the years parameter on the post condition in your view. You're passing the request.
Read more >HTTP authentication - MDN Web Docs - Mozilla
A client that wants to authenticate itself with the server can then do so by including an Authorization request header with the credentials....
Read more >34.1. Database Connection Control Functions - PostgreSQL
It has the same functionality except that the missing parameters will always take on default values. Write NULL or an empty string for...
Read more >How AWS Systems Manager Parameter Store uses AWS KMS
To decrypt either type of secure string parameter value, the user needs kms:Decrypt permission. You can use IAM policies to allow or deny...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I do not think you have to use that since we do support our own types within tedious. You can give it a try, see if it meet your needs. Our project is here. Also, you can try to post this issue on their board, see if they can help you on this. Hi @arthurschreiber, I am not sure why there is a DT mark on the npm page for tedious, have we used their type definition before we fully migrate to typescript?
Hi @Fuco1, Thank you for bring this up. We are using babel to compile the typescript, and seems it does not handles the type declarations. For generate the declarations , tsc is needed. Hi @arthurschreiber , did we not generate it for a purpose or is just because of using babel. For type declarations, should we want to set something for tsc to generate it?