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

Logout fails with "unable to access token public key" #2743

Open
yaleman opened this issue May 3, 2024 · 0 comments · May be fixed by #2741
Open

Logout fails with "unable to access token public key" #2743

yaleman opened this issue May 3, 2024 · 0 comments · May be fixed by #2741
Labels
bug Something isn't working

Comments

@yaleman
Copy link
Member

yaleman commented May 3, 2024

I did this

$ cargo run --bin kanidm -- logout -D idm_admin
    Finished dev [unoptimized + debuginfo] target(s) in 0.17s
     Running `target/debug/kanidm logout -D idm_admin`
2024-05-03T03:23:34.134843Z ERROR kanidm_cli::session: Unable to access token public key

$ cat ~/.cache/kanidm_tokens
{
  "instances": {
    "": {
      "keys": {
        "b391e1e7788ff43e87baa1477969f951": {
          "kty": "EC",
          "crv": "P-256",
          "x": "SApBx42EROrhcDsPkMnVCgLsAU08CPYJtrsnPY_qdzw",
          "y": "TzP-cDd5RIjc4c23bfIgcURzbIIdGLDRfEWAb965MSg",
          "alg": "ES256",
          "use": "sig",
          "kid": "b391e1e7788ff43e87baa1477969f951"
        }
      },
      "tokens": {
        "idm_admin@localhost": "eyJhbGciOiJFUzI1NiIsImtpZCI6ImIzOTFlMWU3Nzg4ZmY0M2U4N2JhYTE0Nzc5NjlmOTUxIn0.eyJzZXNzaW9uX2lkIjoiYjlkNjYwMTItMzgwMi00ZjUxLWJmZjYtYjgwMTdiZjA0NmI3IiwiaXNzdWVkX2F0IjoxNzE0NzA2NjA5LCJleHBpcnkiOjE3MTQ3MTAyMDksInB1cnBvc2UiOnsicmVhZHdyaXRlIjp7ImV4cGlyeSI6MTcxNDc5MzAwOX19LCJ1dWlkIjoiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDE4IiwiZGlzcGxheW5hbWUiOiJJRE0gQWRtaW5pc3RyYXRvciIsInNwbiI6ImlkbV9hZG1pbkBsb2NhbGhvc3QiLCJtYWlsX3ByaW1hcnkiOm51bGwsInVpX2hpbnRzIjpbImV4cGVyaW1lbnRhbGZlYXR1cmVzIl0sImxpbWl0X3NlYXJjaF9tYXhfcmVzdWx0cyI6bnVsbCwibGltaXRfc2VhcmNoX21heF9maWx0ZXJfdGVzdCI6bnVsbH0.C91IYhz-YyH7LUcjah-2HJWxIocec-qYJLj71wpWqJ-PhhTA0Bj8e0D_-TsmG48MvM-U-_kvpIMcJ1_9aZM3Tg"
      }
    },
    "localhost": {
      "keys": {
        "7de88406403451e6bdd9bd43c45401db": {
          "kty": "EC",
{
          "crv": "P-256",
          "x": "TkxOUlH36qiavWrsjoAMJvWa7PEdmmteZ_9sOY2JPMg",
          "y": "1YkKYoE8blc4xT9dUYaOu8kfjfQnVlIz4Qgi8dC0tes",
          "alg": "ES256",
          "use": "sig",
          "kid": "7de88406403451e6bdd9bd43c45401db"
        }
      },
      "tokens": {
        "idm_admin@localhost": "eyJhbGciOiJFUzI1NiIsImtpZCI6IjdkZTg4NDA2NDAzNDUxZTZiZGQ5YmQ0M2M0NTQwMWRiIn0.eyJzZXNzaW9uX2lkIjoiYTczNWEyYzItZGI2Yi00ZmIwLWI4OWMtMGU2OTNhZWQ1MjI5IiwiaXNzdWVkX2F0IjoxNzE0NjA3MDkzLCJleHBpcnkiOjE3MTQ2MTA2OTMsInB1cnBvc2UiOnsicmVhZHdyaXRlIjp7ImV4cGlyeSI6MTcxNDY5MzQ5M319LCJ1dWlkIjoiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDE4IiwiZGlzcGxheW5hbWUiOiJJRE0gQWRtaW5pc3RyYXRvciIsInNwbiI6ImlkbV9hZG1pbkBsb2NhbGhvc3QiLCJtYWlsX3ByaW1hcnkiOm51bGwsInVpX2hpbnRzIjpbXSwibGltaXRfc2VhcmNoX21heF9yZXN1bHRzIjpudWxsLCJsaW1pdF9zZWFyY2hfbWF4X2ZpbHRlcl90ZXN0IjpudWxsfQ.cJbwnCim1ThybqOHC8l5mFeob0tgXY9KdG9vz0wze8pN5KN0YqdNYMi9e_Qv_RQ2EZH1QyKP9bH1YSDX5xdJvg"
      }
    }
  }
}%

I expected the following

Successful logout, it does it server-side then fails to remove it from the local store.

Kanidm version details

  • Output of kanidm(d) version: master kanidm 1.3.0-dev a67d1f5
  • Are you running it in a container? If so, which image/tag?: n/a
  • If not a container, how'd you install it: running from git
  • Operating System / Version (On Unix please post the output of uname -a): macos

Any other comments

@yaleman yaleman added the bug Something isn't working label May 3, 2024
@yaleman yaleman linked a pull request May 3, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🐛 Bugs
Development

Successfully merging a pull request may close this issue.

1 participant