PoNG Module: OAuth

From EWIKI
Jump to navigation Jump to search

This PoNG module adds OAuth security to pong-forms. On page load a modal login dialog requests the userid and password to get the security token.

Please have a look at the other standard modules coming with PoNG.

Usage in "structure"

{
 "layout": {
   ...
   "header": {
     ...
     "modules" : [ 
       { 
         "id": "Sec", 
         "type": "pong-oauth",
         "param": {
             "oauth_scope": "TNT",
             "page_oauth_tokenurl": "https://ws41.caritc.de/oauth2/token",
             "page_oauth_exit_page": "XYZ"
         } 
      }
  ...
}

In pong-forms simply add "oauth-scope" as parameter to the action, that's it.