Official documentation:
http://tools.ietf.org/html/rfc5849 See 1.2 part about an example.
Other useful information:
http://oauth.net/core/1.0/
Diagram about the workflow:
http://oauth.net/core/diagram.png
Yahoo oAuth:
http://developer.yahoo.com/oauth/guide/oauth-auth-flow.html
Prerequirements:
Openapi interface (like app1, app2, job1 etc. interfaces).
More information about the openapi interface here: http://mediamosa.org/trac/wiki/Installing%20MediaMosa
Usage:
- Setting an oauth user and password. Go to the client application page: admin/mediamosa/config/app Click to one, where you want to use oauth authentication. In the "oAuth settings" fieldset set the "oAuth consumer key" and "oAuth consumer secret". These data need to the 3rd party application to connect to MediaMosa ("Request token" step in the diagram) using oAuth.
- With these data the 3rd party application can start an oAuth authentication process.
- In this process the user is redirected to a MediaMosa page, where the client can log in with "Client application name" and "Shared key" ("Direct user to service provider" step in the diagram).
- If everything was all right, then the 3rd party application can use MediaMosa REST calls as a given client application ("Access protected resources" step in the diagram).
REST calls for oAuth:
- /openapi/oauth/request_token, method [GET]
https://beheer.acceptatie.vpcore.snkn.nl/admin/mediamosa/browse/restcall /openapi-oauth-request_token/GET
This is the entry URL for 3rd party applications. - /openapi/oauth/access_token, method [GET]
https://beheer.acceptatie.vpcore.snkn.nl/admin/mediamosa/browse/restcall /openapi-oauth-access_token/GET
