question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Authentication type parameter seems to accept too many values

See original GitHub issue

I 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.

A screenshot showing the discrepancy

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MichaelSun90commented, Feb 16, 2022

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?

0reactions
MichaelSun90commented, Sep 29, 2022

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found