Added redirection sample
This commit is contained in:
		
							parent
							
								
									ca8050d790
								
							
						
					
					
						commit
						0ba347d8f0
					
				| @ -43,9 +43,10 @@ public class Samples { | ||||
| 
 | ||||
| 	public static final class OB20 { | ||||
| 		public static final class JSON { | ||||
| 			//  original: test_verify:test_verify_function | ||||
| 			public final static Sample SIMPLE_ASSERTION_JSON = new Sample("ob20/basic-assertion.json", true); | ||||
| 			// public final static Sample SIMPLE_BADGECLASS_JSON = new Sample("ob20/basic-badgeclass.json", true); | ||||
| 			// public final static Sample SIMPLE_ISSUER_JSON = new Sample("ob20/basic-issuer.json", true); | ||||
| 			// original: test_graph:test_verify_with_redirection | ||||
| 			public final static Sample WARNING_REDIRECTION_ASSERTION_JSON = new Sample("ob20/warning-with-redirection.json", true); | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| @ -1,17 +1,17 @@ | ||||
| { // test_graph:test_verify_with_redirection | ||||
|   "@context": "https://w3id.org/openbadges/v2", // openbadges_context.json | ||||
| { | ||||
|   "@context": "https://w3id.org/openbadges/v2", | ||||
|   "type": "Assertion", | ||||
|   "id": "https://example.org/beths-robotics-badge.json", // robotics-badge.json | ||||
|   "id": "https://example.org/beths-robotics-badge.json", | ||||
|   "recipient": { | ||||
|     "type": "email", | ||||
|     "hashed": true, | ||||
|     "salt": "deadsea", | ||||
|     "identity": "sha256$ecf5409f3f4b91ab60cc5ef4c02aef7032354375e70cf4d8e43f6a1d29891942" | ||||
|   }, | ||||
|   "image": "https://example.org/beths-robot-badge.png", // image | ||||
|   "image": "https://example.org/beths-robot-badge.png", | ||||
|   "evidence": "https://example.org/beths-robot-work.html", | ||||
|   "issuedOn": "2016-12-31T23:59:59Z", | ||||
|   "badge": "http://example.org/altbadgeurl", // altbadgeurl.json | ||||
|   "badge": "http://example.org/altbadgeurl", | ||||
|   "verification": { | ||||
|     "type": "hosted" | ||||
|   } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user