-
Notifications
You must be signed in to change notification settings - Fork 182
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
/v1.0/me returns error code 401 #13
Comments
does this work for you?: ./gradlew clean build integrationTest |
The integration tests work and my manual test was successful. Check:
|
It seems that it's now working fine (curl login and /me). integrationTest fails with the following error ("could not stop mongodb"). The test then succeeds if I stop manually mongodb (sudo service mongod stop). I did a big system update this afternoon and I've restarted since. Maybe the issue came from there...
|
I'm currently redirecting HTTP to HTTPS. When login using curl, I don't get an access token as expected. I'm not 100% sure but I think this was working before the recent commits of oauth2-provider.
|
It looks like your webapp is redirecting to another port when using https, hence the 302 response. |
I'm using Gretty's redirection filter, which has been released a few days ago (version 1.1.7+). http://akhikhl.github.io/gretty-doc/Redirect-filter.html The default port used by Gretty for HTTPS is 8443. |
I suggested the HTTP to HTTPS redirection to Gretty author one week ago and he came up once again with a feature very easy to use (see above doc link). Add this code to web.xml
Add WEB-INF/filter.groovy
Enable HTTPS in Gretty configuration (build.gradle). Default HTTPS port is 8443.
|
OK, thanks. I might get some time next week to try it out. |
Using curl to get user information returns an error code 401.
returns OK
returns
The text was updated successfully, but these errors were encountered: