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

Cannot create JWKS token #244

Closed
akkie opened this issue Apr 29, 2024 · 0 comments
Closed

Cannot create JWKS token #244

akkie opened this issue Apr 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@akkie
Copy link

akkie commented Apr 29, 2024

Describe the bug
It's not possible to create a JWKS token with Surrealist. With the old version it was possible, with the new version it shows an error.

To Reproduce
Create a new query with the example from the documentation:

https://surrealdb.com/docs/surrealdb/surrealql/statements/define/token#json-web-key-set-jwks-since-120

DEFINE TOKEN token_name
  -- Use this token provider for database authorization
  ON DATABASE
  -- Specify the JWKS specification used to verify the token
  TYPE JWKS 
  -- Specify the URL where the JWKS object can be found
  VALUE "https://example.com/.well-known/jwks.json"
;

The UI shows an error: Failed to parse query at line 1 column 8 expected query to end

image

Expected behavior
The query should be executed.

Environment:

Platform: Desktop
OS: Darwin
Architecture: aarch64
WebView: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)
Version: 2.0.1
Flags: featureFlags: false, models_view: true, apidocs_view: true, themes: false, newsfeed: true

Additional information. The same issue occurs in the Rust SDK.

@akkie akkie added the bug Something isn't working label Apr 29, 2024
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
None yet
Development

No branches or pull requests

1 participant