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

OpenAPI Sdk: Invalid value 'webauthn' for 'method', must be one of 'link_recovery', 'password', 'totp', 'oidc' #1913

Closed
5 of 6 tasks
NickUfer opened this issue Oct 31, 2021 · 0 comments · Fixed by #1914
Closed
5 of 6 tasks
Labels
bug Something is not working.

Comments

@NickUfer
Copy link
Contributor

Preflight checklist

Describe the bug

When I call /sessions/whoami with e.g. the PHP client sdk I get the following error:

Invalid value 'webauthn' for 'method', must be one of 'link_recovery', 'password', 'totp', 'oidc'

Exception fired at:

https://github.com/ory/kratos-client-php/blob/556c84db83d64a4447d3921c3a44e0c82966a9d6/lib/Model/SessionAuthenticationMethod.php#L285-L300


Output of /sessions/whoami:

{
  "id": "f1eb5a0c-5e34-466d-a60e-1f180d399a49",
  "active": true,
  "expires_at": "2021-11-01T22:12:23.423933Z",
  "authenticated_at": "2021-10-31T22:12:23.423933Z",
  "authenticator_assurance_level": "aal2",
  "authentication_methods": [
    {
      "method": "password",
      "completed_at": "2021-10-31T22:12:20.082854893Z"
    },
    {
      "method": "webauthn",
      "completed_at": "2021-10-31T22:12:23.423931056Z"
    }
  ],
  // ...

It seems that webauthn is missing as an allowed authentication method.

Reproducing the bug

  1. Setup webauthn
  2. Create an account with webauthn as second factor
  3. Log out and log back in -> pass AAL1 & AAL2
  4. Call /sessions/whoami with (probably) any or at least the PHP client sdk. Any SDK which validates the server responses.

Relevant log output

No response

Relevant configuration

No response

Version

v0.8.0-alpha.2

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Docker

Additional Context

No response

@NickUfer NickUfer added the bug Something is not working. label Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant