You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to retrieve the user id via a Query but it returned an empty slice.
Example:
Public Key iWlbYg08RKVFTobd/O5U9UOkgtc4vyp6I3eOXLRp7AE= // use base64.StdEncoding.DecodeString
Token: EnkKDxIAGAMiCQoHCAoSAxDRCRIkCAASIDw-FMjPGu38xq_hhpx7__ESWLn4TaPP25SiOIkK3AJAGkAmyrsV1iJn7x8fRBra2f9VPAtO1wuOQwlqU-GUivSNdLef8ksUUGTwKMeQXrZzOyWthKOodgCrSqAet9DimPYFIiIKIHekAqed-ehAMGbz1eXeul0J5j_CvnF7U-kw-Lwe_7o9 // use base64.URLEncoding.DecodeString
Hi, thanks for the report! So currently the workaround would be to create an authorizer and call authorize before querying it.
I think that the go library could benefit from an API overhaul anyway, to make it consistent with other libraries. The issues you mentioned would be in the list of needed improvements.
I have limited time and go knowledge to handle it myself, but i would be happy providing guidance to anyone willing to carry this project out.
Hi,
I wanted to retrieve the user id via a Query but it returned an empty slice.
Example:
Public Key
iWlbYg08RKVFTobd/O5U9UOkgtc4vyp6I3eOXLRp7AE=
// usebase64.StdEncoding.DecodeString
Token:
EnkKDxIAGAMiCQoHCAoSAxDRCRIkCAASIDw-FMjPGu38xq_hhpx7__ESWLn4TaPP25SiOIkK3AJAGkAmyrsV1iJn7x8fRBra2f9VPAtO1wuOQwlqU-GUivSNdLef8ksUUGTwKMeQXrZzOyWthKOodgCrSqAet9DimPYFIiIKIHekAqed-ehAMGbz1eXeul0J5j_CvnF7U-kw-Lwe_7o9
// usebase64.URLEncoding.DecodeString
Biscuit Authority Block :
PoC:
Current
Expected:
Problem:
In Go the world is build in
func (v *authorizer) Authorize() error
see:biscuit-go/authorizer.go
Line 114 in ec4a701
In Rust the world is build in
pub fn authorizer(&self) -> Result<Authorizer, error::Token>
see: https://github.com/biscuit-auth/biscuit-rust/blob/132b0c9ddc02d2266ab9e06b3a0ef6808fe040f7/biscuit-auth/src/token/authorizer.rs#L150Thx @Akanoa for help !
The text was updated successfully, but these errors were encountered: