Closed thallgren closed 13 years ago
I receive strings ending with a newline character when using the OAuthService.getAccessToken() method. The authentication fails unless the newline is removed. The reason is this pattern in ApplicationConstants.properties:
com.github.api.v2.services.accessTokenPattern=access_token=([^&]+)(&expires=(\\d+))?
I tried changing the pattern to:
access_token=(\\w+)(&expires=(\\d+))?
and that works.
Thanks for pointing this out. I have fixed this in the master branch.
I receive strings ending with a newline character when using the OAuthService.getAccessToken() method. The authentication fails unless the newline is removed. The reason is this pattern in ApplicationConstants.properties:
I tried changing the pattern to:
and that works.