Skip to content

Latest commit

 

History

History
51 lines (45 loc) · 2.31 KB

arbitrary_no_subject_graphql.md

File metadata and controls

51 lines (45 loc) · 2.31 KB

Extension Grant: arbitrary_no_subject

GraphQL Support

This is a graphql variant of the original OAuth2 version.

GraphQL Client

Altair GraphQL Client

GraphQL Endpoint

https://localhost:44332/api/v1/GraphQL

query

query q($input: arbitrary_no_subject!) {
   arbitrary_no_subject(input: $input){
    access_token
    expires_in
    token_type
  }
}

Variables

{
  "input": {
    "client_id": "arbitrary-resource-owner-client",
    "client_secret": "secret",
    "scope": " metal nitro aggregator_service.read_only",
    "arbitrary_claims":"{ 'role': ['application', 'limited'],'query':['dashboard', 'licensing'],'seatId':['1234abcd']}",
    "access_token_lifetime":3600,
    "arbitrary_amrs":"['agent:username:[email protected]','agent:challenge:fullSSN','agent:challenge:homeZip']",
    "arbitrary_audiences":"['cat','dog']"
  }
}

Result

{
  "data": {
    "arbitrary_no_subject": {
      "access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6ImE3MjhhYTE5M2VhZTMyMzg0M2ZjNTZlOTNlN2MwZDFiIiwidHlwIjoiSldUIn0.eyJuYmYiOjE1NDAxNTAzMjQsImV4cCI6MTU0Mjc0MjMyNCwiaXNzIjoiaHR0cHM6Ly9sb2NhbGhvc3Q6NDQzMzIiLCJhdWQiOlsiaHR0cHM6Ly9sb2NhbGhvc3Q6NDQzMzIvcmVzb3VyY2VzIiwiYWdncmVnYXRvcl9zZXJ2aWNlLnJlYWRfb25seSIsIm1ldGFsIiwibml0cm8iLCJjYXQiLCJkb2ciXSwiY2xpZW50X2lkIjoiYXJiaXRyYXJ5LXJlc291cmNlLW93bmVyLWNsaWVudCIsInJvbGUiOlsiYXBwbGljYXRpb24iLCJsaW1pdGVkIl0sInF1ZXJ5IjpbImRhc2hib2FyZCIsImxpY2Vuc2luZyJdLCJzZWF0SWQiOiIxMjM0YWJjZCIsIm51ZGlicmFuY2hfd2F0ZXJtYXJrIjoiRGFmZnkgRHVjayIsIn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