User:Prawsthorne/StepxStep: Difference between revisions

Jump to navigation Jump to search
Line 114: Line 114:
For manual issue of a badge your web server is going to have to support the '''application/json''' content-type. Ihis is done by some administrative tasks with your servers configuration. A Google search of your server name (Apache, IIS, etc.) and the keyword '''content-type''' should provide the information regarding your server recognizing this content-type.
For manual issue of a badge your web server is going to have to support the '''application/json''' content-type. Ihis is done by some administrative tasks with your servers configuration. A Google search of your server name (Apache, IIS, etc.) and the keyword '''content-type''' should provide the information regarding your server recognizing this content-type.
<pre>
<pre>
{
  # Save your assertions as .json files and add this to your httpd.conf
  "recipient": "sha256$2ad891a61112bb953171416acc9cfe2484d59a45a3ed574a1ca93b47d07629fe",
  AddType  application/json   json
  "salt": "hashbrowns",
  "EVIDENCE": "http://p2pu.org/badges/html5-basic/bimmy",
  "expires": "2013-06-01",
  "issued_on": "2011-06-01",
  "badge": {
    "version": "0.5.0",
    "name": "HTML5 Fundamental",
    "image": "/img/html5-basic.png",
    "description": "Knows the difference between a <section> and an <article>",
    "CRITERIA": "http://p2pu.org/badges/html5-basic",'''
    "issuer": {
      "ORIGIN": "http://p2pu.org",
      "name": "P2PU",
      "org": "School of Webcraft",
      "contact": "admin@p2pu.org"
  }
   }
}
</pre>
</pre>
 
'''''Note:'' setting the content-type can also be done in code. This is currently beyond the scope of this step-by-step guide. To review this 'in code' approach feel free to read the github page discussing assetions; https://github.com/mozilla/openbadges/wiki/Assertions'''


* create a screencast for editing the httpd.conf file in apache... also show the server restart...
* create a screencast for editing the httpd.conf file in apache... also show the server restart...
1,065

edits

Navigation menu