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

HttpOAuth2Connector is unable to identify the endpointId for root-path requests #4

Closed
wabson opened this issue Mar 11, 2014 · 0 comments
Labels

Comments

@wabson
Copy link
Member

wabson commented Mar 11, 2014

This issue was discovered while investigating share-extras/myalfresco-dashlets#1 and occurs when a request is made to the root path of an endpoint via the proxy controller.

In these circumstances, the connector is not able to correctly identify the ID of the endpoint from the request, and therefore it is not possible to load any user tokens for that endpoint.

The following debug logs from share.log show this happenning

3:21:33,722 DEBUG [org.sharextras.webscripts.connector.HttpOAuth2Connector] No tokens found. Loading from tokenstore.
13:21:33,723 DEBUG [org.sharextras.webscripts.connector.HttpOAuth2Connector] Loading OAuth tokens for endpoint proxymyalfresco-api
13:21:33,723 DEBUG [org.sharextras.webscripts.connector.OAuth2CredentialVaultProvider] Generating key oAuth2CredentialVaultProvider
13:21:33,724 DEBUG [org.sharextras.webscripts.connector.OAuth2CredentialVaultProvider] Creating new credential vault with ID admin
13:21:33,767 DEBUG [org.sharextras.webscripts.connector.OAuth2CredentialVault] No tokens stored for endpoint proxymyalfresco-api
13:21:33,767 DEBUG [org.sharextras.webscripts.connector.OAuth2CredentialVault] Retrieving credentials
13:21:33,767 ERROR [org.sharextras.webscripts.connector.OAuth2CredentialVault] Could not locate user object in request context

In this case the endpoint ID was incorrectly returned as proxymyalfresco-api instead of myalfresco-api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant