Skip to content

Instantly share code, notes, and snippets.

@acoburn
Last active April 25, 2021 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acoburn/e09246b92f3ee990ee864f900271360c to your computer and use it in GitHub Desktop.
Save acoburn/e09246b92f3ee990ee864f900271360c to your computer and use it in GitHub Desktop.
JSON-LD context for Solid-OIDC
{
"@context": "https://www.w3.org/ns/solid/oidc.jsonld",
"client_id": "https://example.com/app",
"client_name": "My Client",
"redirect_uris": [
"https://example.com/callback1",
"https://example.com/callback2"
]
}
{
"@context": {
"oidc": "http://www.w3.org/ns/solid/oidc#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"client_id": {
"@id": "@id",
"@type": "@id"
},
"client_secret": {
"@id": "oidc:client_secret"
},
"redirect_uris": {
"@id": "oidc:redirect_uris",
"@type": "@id",
"@container": [
"@id",
"@set"
]
},
"client_name": {
"@id": "oidc:client_name"
},
"logo_uri": {
"@id": "oidc:logo_uri",
"@type": "@id"
},
"tos_uri": {
"@id": "oidc:tos_uri",
"@type": "@id"
},
"grant_types": {
"@id": "oidc:grant_types"
},
"response_types": {
"@id": "oidc:response_types"
},
"scope": {
"@id": "oidc:scope"
},
"default_max_age": {
"@id": "oidc:default_max_age",
"@type": "xsd:integer"
},
"require_auth_time": {
"@id": "oidc:require_auth_time",
"@type": "xsd:boolean"
},
"application_type": {
"@id": "oidc:application_type"
},
"contacts": {
"@id": "oidc:contacts"
},
"client_uri": {
"@id": "oidc:client_uri",
"@type": "@id"
},
"policy_uri": {
"@id": "oidc:policy_uri",
"@type": "@id"
},
"token_endpoint_auth_method": {
"@id": "oidc:token_endpoint_auth_method"
}
}
}
@csarven
Copy link

csarven commented Apr 19, 2021

Let's make sure to be actively clear on http(s) on vocab vs context use.

@csarven
Copy link

csarven commented Apr 19, 2021

.jsonld

@csarven
Copy link

csarven commented Apr 19, 2021

Complement with vocab?

@csarven
Copy link

csarven commented Apr 19, 2021

prefix oidc... something to consider re prefix.cc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment