0
votes

To play with the demo-sessions app, I've got the oauth2 app mounted on /oauth2 as required. In arangodb/Foxx doc, the oauth2 endpoints seems to be defined as strings (i.e https://github.com/arangodb-foxx/util-oauth2 )

But when I perform that with correct urls, and try to play with oauth, I've got an error : ...\oauth2\APP\manifest.json\": attribute child \"authEndpoint\" fails because [\"authEndpoint\" must be an object] (was \"[object Object]\").]","...

Oauth endpoints definitions are expected to be objects, not strings. So what is the correct configuration for Foxx oauth2 ? Thanks for help,

2
Could you clarify what version of ArangoDB you are using? - Alan Plum

2 Answers

1
votes

I can't reproduce your problem but the OAuth2 app has been updated for ArangoDB 2.7. You can still install odler versions of the OAuth2 app from the "install from GitHub" dialog, though.

0
votes

I understand my mistake. In the code of the oauth2 2.0 release, the manifest just references the export.js file. In the previous release (1.2), a providers.js file was supplied and referenced in the manifest. Then in this previous release, it was possible to use different providers (what I want) as described in the 1.2 setup.js. var providers = db._collection(providersName);

I just fetch the files providers.js, and setup.js from 1.2 github tag and configure them for my configuration, and that's ok.