I've recently updated the moodle sgoauth server files to include api calls that we needed for an integration project we are currently doing.  For this integration we also needed authorization tokens to be granted automatically so I added support for specifying autoauthorize in the datamodel.

While testing, I encountered a bug on the elgg consumer code that prevented the cron jobs from deleting stale tokens so I fixed that as well.

Download the updated code.

EDIT:

Here is the link to the post announcing the first release.

posted in ,

Installation process

HI
I am trying to test your plugin with Moodle 2.3.1 and Wordpress 3.4.1

1) Set up in Wordpress
there are 4 fields that need to be filled in, Consumer Key, Secret, OAuth Server Base URL and OAuth Server Name. Where do I get that information in moodle?

2) at the step 3 on how to install the server.

"... At this point the necessary database tables have been setup.

You'll need to create records for your consumers by manually
  inserting into the database.  Some sample sql insert commands are:

  For wordpress:

  mysql> insert into oauth_consumers (name, callbackurl, cancelurl, secret, consumerkey, timecreated, timemodified)
          values ('Wordpress', 'http://my.wordpress.url/wp-load.php?action=sg_oauth&service=logincallback',
                  'http://my.wordpress.url/wp-login.php', 'mysecretstring', 'mywordpressconsumerkey',
                  unix_timestamp(current_timestamp()), unix_timestamp(current_timestamp()));    ....."

It is not clear for me, Please can you explain it.

Thanks in advance

Carlos

by Carlos Kiyan on 07/25/12

updated code

Carlos,

You might want to download the updated code from github instead -- https://github.com/solutiongrove/sg-moodle-oauth  There should be instructions in the readme file.

by Deds Castillo on 07/25/12

help for normal php

I am new to moodle and i am not good on word press and Elgg.Can you help me to implement the oauth with normal php.

by Azeem Sai on 01/20/14

must to use

There is definitely so many great options that go a long with this. You will not disappointed at with the use of it. You will be able to do so much with it. http://drunk17.tumblr.com

by james leroy on 05/12/14

windows 8 upgrade

Thank you updating the moodle sgoauth server files. Moreover, thank you for fixing the bugs in it. Solution grove is doing a great job in the field as a server client technology. Hope you will help like this forever. I have sent a link to the post. <a href="http://www.windows8-upgrade.com">windows 8 upgrade</a>

by vishnu narayanan on 07/11/14

Wonderful illustrated information.

Wonderful illustrated information. I thank you about that. No doubt it will be very useful for my future projects. Would like to see some other posts on the same subject!
http://readmore.me/motog
http://readmore.me/camsh

by Lindur Ginta on 08/11/14

dsfds

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.
http://www.replicaorologioit.com

by adsgy kingcd on 08/20/14

Add comment
Recent Entries
Categories

AJAX (19)
CCK08 (1)
MEL (32)
LAMS (11)
Tech (22)
JQuery (8)
HTML5 (2)



Authors




Archive

Full Archive




Notifications
Icon of envelope Subscribe to notificaitons


Syndication Feed
XML


Recent Comments
  1. NAIRY YOUNES: nairy
  2. NAIRY YOUNES: nairy
  3. NAIRY YOUNES: nairy
  4. NAIRY YOUNES: nairy
  5. NAIRY YOUNES: nairy
  6. NAIRY YOUNES: nairy
  7. NAIRY YOUNES: nairy
  8. NAIRY YOUNES: nairy
  9. NAIRY YOUNES: nairy
  10. NAIRY YOUNES: nairy



Technorati Blogs