You have insufficient privileges to post here.
Could you update the bundled copy of oauth2-server-php? 1.7.0 is two years old, and I just ran into a problem caused by deprecation of mcrypt_create_iv in PHP 7.1 (fixed in https://github.com/bshaffer/oauth2-server-php/pull/773).
It would also be a good idea to move away from mcrypt altogether at some point.
That pull request was actually made by us. New release should be available soon and include that fix.
Server Error Log
Error Info
ErrorException: Function mcrypt_create_iv() is deprecated - library/bdApi/Lib/oauth2-server-php/src/OAuth2/ResponseType/AccessToken.php:118
Generated By: Unknown Account, 4 minutes ago
You only need to create client once. All login will then proceed with that one client, users don't need to create their own FYI.@xfrocks Hey man, great work.
I wanted to ask a few quick questions, as I'm new to working with oAuth2.
So, I want to use my Xenforo installation to login to another web application. The way I envision this would be a login page button that says 'login with Xenforo' etc.
The issue here is, I don't want users to have to create clients themselves. I want them to just be directed to the auth URI, they login, then redirected back to the Web App with their token in the headers. This way, I don't have to get users to know what a 'redirect URI' is.
Any tips?
Thanks!
You only need to create client once. All login will then proceed with that one client, users don't need to create their own FYI.
Have you installed the add-on? Try updating it with the XML to trigger the install code again.@xfrocks hi.
when i trying android app with bdapi i m getting those errors and cant post any messages at web browser.
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Unknown column 'bdapi_origin' in 'field list' - library/Zend/Db/Statement/Mysqli.php:77
Oluşturan: XXXXXXX 11 dakika önce
#0 /home/sadecega/public_html/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('INSERT INTO `xf...')
#1 /home/sadecega/public_html/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'INSERT INTO `xf...')
#2 /home/sadecega/public_html/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('INSERT INTO `xf...')
#3 /home/sadecega/public_html/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `xf...', Array)
#4 /home/sadecega/public_html/library/XenForo/DataWriter.php(1638): Zend_Db_Adapter_Abstract->insert('xf_post', Array)
#5 /home/sadecega/public_html/library/XenForo/DataWriter.php(1627): XenForo_DataWriter->_insert()
#6 /home/sadecega/public_html/library/XenForo/DataWriter.php(1419): XenForo_DataWriter->_save()
#7 /home/sadecega/public_html/library/XenForo/ControllerPublic/Thread.php(578): XenForo_DataWriter->save()
#8 /home/sadecega/public_html/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Thread->actionAddReply()
#9 /home/sadecega/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /home/sadecega/public_html/index.php(13): XenForo_FrontController->run()
#11 {main}
array(7) {
["_origRoutePath"] => string(15) "oauth/authorize"
["_matchedRoutePath"] => string(15) "oauth/authorize"
["client_id"] => string(10) "XXXXXX"
["redirect_uri"] => string(34) "my/callback"
["scope"] => string(34) "read,post,usercp,conversate,adm…"
["response_type"] => string(4) "code"
["state"] => string(34) "Ydwx1soU94H7D4bE9WvgHneX6u9ekKj…"
}
array(2) {
["redirectType"] => int(5)
["redirectUri"] => string(34) "https://dev.7cav.us/account/aut…"
}
array(6) {
["_origRoutePath"] => string(11) "oauth/token"
["_matchedRoutePath"] => string(11) "oauth/token"
["client_id"] => string(10) "XXXX"
["client_secret"] => string(15) "XXXXXXXXX"
["redirect_uri"] => string(34) "my/callback"
["grant_type"] => string(18) "authorization_code"
}
array(4) {
["error"] => string(15) "invalid_request"
["error_description"] => string(34) "Missing parameter: "code" is re…"
["_statusCode"] => int(400)
["_headers"] => array(1) {
["Cache-Control"] => string(8) "no-store"
}
}
You can use this to setup push notification but this add-on by itself does not do that by itself FYI.Hi
Do I need anything else beside this API to get push notifications on Android?
That is correct, glad you figured it outI found the issue, turns out scopes need to be delimited by spaces and not commas
You can use this to setup push notification but this add-on by itself does not do that by itself FYI.
Yes, you need something like this https://github.com/xfrocks/node_pubhubsubbub_pushserverCan you elaborate on that? I'm a little uncertain on what is included in the API, in your Android demo you send the GCM token to a web-service. Does that mean the part with registering a user is implemented?
I'm also getting an error when trying to call any of the endpoints:
An exception occurred: Undefined index: scheme in /customers/1/b/c/mysite/httpd.www/library/bdApi/Link.php on line 138
May be it will be helpful:
I created provider for Laravel Socialite, which support authorization over XenForo [bd] Api: https://github.com/sas1024/socialite-xenforo-bdapi
$user->api()->createConversation($recipients, $body);
We use essential cookies to make this site work, and optional cookies to enhance your experience.