-
Notifications
You must be signed in to change notification settings - Fork 16
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
401 Unauthorized when trying to get admin token #21
Comments
After further investigation, the regex used to extract the username & password from the decoded token doesn't like symbols in the password. So I'd suggest an update to the Test drive to add the -n flag to pass generate to exclude symbols from the password:
With that change the Test drive worked as described. |
Thanks for this - I've made the change you suggested to the documentation. |
I'm still puzzled as to why this occurred. If you have a moment, could you paste me a bit more detail, or a password that causes the issue? |
The generated password that caused the problem was <d"DWP+"g/egZyR:`rYQ#QiXv From the repl
|
Thanks very much for sending this in, it's really helpful and I was able to spot the bug straight-away. The regex is wrong, it should almost certainly be Note, when fixing this bug, remove the |
Hi, we're currently rewriting all the authn/authz parts of site so this is problem won't exist in a few weeks when that gets merged but for now you can do one of the following things to solve this:
Hopefully that helps |
I tried but does not change . Also can't find the opt/login-page. |
Following the Test drive I get the following when trying to get-token for the admin user
Looking at the log output it looks like the username being passed to juxt.pass.alpha.authentication/lookup-user is nil
The text was updated successfully, but these errors were encountered: