Skip to content

Proposed update for auth response data format #4

@shea256

Description

@shea256

Auth Response Format

{
  header: {
    typ: "JWT",
    alg: "ES256K"
  },
  payload: {
    jti: '0b42722b-e781-434a-805d-c09c476e86b9',
    iat: 1482268876495,
    exp: 1482268876495,
    sub: "did:bsk:17bWfXcFNNhG8Nu6KZopT17KZGPXxjiA9n-0",
    iss: "did:bsk:17bWfXcFNNhG8Nu6KZopT17KZGPXxjiA9n-0",
    issPublicKeys: [
      "03d03f2c3f7e3cf225757cb303ca91d5a243ad9057485ce2e39fe47b1159bd8c9a"
    ],
    api: {
      baseURL: "http://localhost:3000/api/v1",
      nameLookup: {
        url: "/names/{name}",
        methods: ["GET"]
      },
      addressLookup: {
        url: "/addresses/{address}",
        methods: ["GET"]
      },
      profile: {
        url: "/profile",
        methods: ["GET"]
      },
      collections: [
        {
          url: "/collections/schema.org:ImageObject",
          methods: ["GET", "POST"]
        },
        {
          url: "/collections/schema.org:AudioObject",
          methods: ["GET", "POST"]
        }
      ],
      store: {
        url: "/stores/helloblockstack.com",
        methods: ["GET", "PUT"]
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions