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

WIP: Don't try and store/serialize the instance as an empty name #2741

Draft
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

yaleman
Copy link
Member

@yaleman yaleman commented May 1, 2024

For some reason the logout functionality's not working, fails to load the token's public key from the store.

relates to #2740
fixes #2743

Checklist

  • This pr contains no AI generated code
  • cargo fmt has been run
  • cargo clippy has been run
  • cargo test has been run and passes
  • book chapter included (if relevant)
  • design document included (if relevant)

Copy link
Member Author

@yaleman yaleman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error on logout:

2024-05-01T23:44:59.097647Z ERROR kanidm_cli::session: Unable to access token public key
2024-05-01T23:44:59.097654Z TRACE kanidm_cli::session: Using jwsc: JwsCompact { header: ProtectedHeader { alg: ES256, jku: None, jwk: None, kid: Some("7de88406403451e6bdd9bd43c45401db"), crit: None, typ: None, cty: None, x5u: None, x5c: None, x5t: None, x5t_s256: None, ctx: None }, payload: "eyJzZXNzaW9uX2lkIjoiYTczNWEyYzItZGI2Yi00ZmIwLWI4OWMtMGU2OTNhZWQ1MjI5IiwiaXNzdWVkX2F0IjoxNzE0NjA3MDkzLCJleHBpcnkiOjE3MTQ2MTA2OTMsInB1cnBvc2UiOnsicmVhZHdyaXRlIjp7ImV4cGlyeSI6MTcxNDY5MzQ5M319LCJ1dWlkIjoiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDE4IiwiZGlzcGxheW5hbWUiOiJJRE0gQWRtaW5pc3RyYXRvciIsInNwbiI6ImlkbV9hZG1pbkBsb2NhbGhvc3QiLCJtYWlsX3ByaW1hcnkiOm51bGwsInVpX2hpbnRzIjpbXSwibGltaXRfc2VhcmNoX21heF9yZXN1bHRzIjpudWxsLCJsaW1pdF9zZWFyY2hfbWF4X2ZpbHRlcl90ZXN0IjpudWxsfQ" }
2024-05-01T23:44:59.097670Z TRACE kanidm_cli::session: Using token: "eyJhbGciOiJFUzI1NiIsImtpZCI6IjdkZTg4NDA2NDAzNDUxZTZiZGQ5YmQ0M2M0NTQwMWRiIn0.eyJzZXNzaW9uX2lkIjoiYTczNWEyYzItZGI2Yi00ZmIwLWI4OWMtMGU2OTNhZWQ1MjI5IiwiaXNzdWVkX2F0IjoxNzE0NjA3MDkzLCJleHBpcnkiOjE3MTQ2MTA2OTMsInB1cnBvc2UiOnsicmVhZHdyaXRlIjp7ImV4cGlyeSI6MTcxNDY5MzQ5M319LCJ1dWlkIjoiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDE4IiwiZGlzcGxheW5hbWUiOiJJRE0gQWRtaW5pc3RyYXRvciIsInNwbiI6ImlkbV9hZG1pbkBsb2NhbGhvc3QiLCJtYWlsX3ByaW1hcnkiOm51bGwsInVpX2hpbnRzIjpbXSwibGltaXRfc2VhcmNoX21heF9yZXN1bHRzIjpudWxsLCJsaW1pdF9zZWFyY2hfbWF4X2ZpbHRlcl90ZXN0IjpudWxsfQ.cJbwnCim1ThybqOHC8l5mFeob0tgXY9KdG9vz0wze8pN5KN0YqdNYMi9e_Qv_RQ2EZH1QyKP9bH1YSDX5xdJvg"

Ok(verifier) => verifier,
Err(err) => {
error!(?err, "Unable to configure jws verifier");
std::process::exit(1);
}
},
None => {
// TODO: this is failing due to some issue I don't *quite* understand
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Firstyear this one's breaking and I'm not sure why yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🐛 Bugs
Development

Successfully merging this pull request may close these issues.

Logout fails with "unable to access token public key"
1 participant