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

400 Bad Request response when trying to add a token for a yubikey #232

Open
goulter opened this issue Sep 27, 2023 · 1 comment
Open

400 Bad Request response when trying to add a token for a yubikey #232

goulter opened this issue Sep 27, 2023 · 1 comment

Comments

@goulter
Copy link

goulter commented Sep 27, 2023

Description

We haven't had any issues up til about a month ago. We are on duo-client version 4.7.1.
When a user attempts to add a yubikey to their account, we are getting a response, "400 Bad Request".

Expected Behavior

Yubikey successfully added to user account with the specified token.

Actual Behavior

400 Bad Request

Steps to Reproduce

  1. Get a yubikey
  2. Generate a base 32 encoded secret
  3. Add this yubikey to a user's profile
  4. Gets the error "400 Bad Request"

Workarounds

None at the moment.

@AaronAtDuo
Copy link
Contributor

@goulter which API method are you calling to add the token? Are you calling it via one of the provided API call wrapper methods (such as add_yubikey_token), or directly calling the json_api_call method and hand-writing the call?

I'll attempt to reproduce this behavior and see what I can find.

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

2 participants