{"action":"created","issue":{"url":"https://api.github.com/repos/frasertweedale/hs-jose/issues/26","repository_url":"https://api.github.com/repos/frasertweedale/hs-jose","labels_url":"https://api.github.com/repos/frasertweedale/hs-jose/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/frasertweedale/hs-jose/issues/26/comments","events_url":"https://api.github.com/repos/frasertweedale/hs-jose/issues/26/events","html_url":"https://github.com/frasertweedale/hs-jose/issues/26","id":190610383,"number":26,"title":"Serialize one \"aud\" (Audience) Claim to JSON as string","user":{"login":"beardpotatocat","id":23623781,"avatar_url":"https://avatars.githubusercontent.com/u/23623781?v=3","gravatar_id":"","url":"https://api.github.com/users/beardpotatocat","html_url":"https://github.com/beardpotatocat","followers_url":"https://api.github.com/users/beardpotatocat/followers","following_url":"https://api.github.com/users/beardpotatocat/following{/other_user}","gists_url":"https://api.github.com/users/beardpotatocat/gists{/gist_id}","starred_url":"https://api.github.com/users/beardpotatocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beardpotatocat/subscriptions","organizations_url":"https://api.github.com/users/beardpotatocat/orgs","repos_url":"https://api.github.com/users/beardpotatocat/repos","events_url":"https://api.github.com/users/beardpotatocat/events{/privacy}","received_events_url":"https://api.github.com/users/beardpotatocat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-21T03:29:32Z","updated_at":"2016-11-21T04:28:39Z","closed_at":null,"body":"In https://tools.ietf.org/html/rfc7519#section-4.1.3 - In the\r\n   special case when the JWT has one audience, the \"aud\" value MAY be a\r\n   single case-sensitive string containing a StringOrURI value.\r\n\r\nIn current implementation is a single value array, for example \"aud\": [\"https://www.googleapis.com/oauth2/v4/token\"] but that doesn't work for https://developers.google.com/identity/protocols/OAuth2ServiceAccount where they expect \"aud\":\"https://www.googleapis.com/oauth2/v4/token\"\r\n\r\nWould it be possible to support singe string in \r\ninstance ToJSON Audience where\r\n  toJSON (Audience auds) = toJSON auds\r\n?"},"comment":{"url":"https://api.github.com/repos/frasertweedale/hs-jose/issues/comments/261840204","html_url":"https://github.com/frasertweedale/hs-jose/issues/26#issuecomment-261840204","issue_url":"https://api.github.com/repos/frasertweedale/hs-jose/issues/26","id":261840204,"user":{"login":"frasertweedale","id":2331938,"avatar_url":"https://avatars.githubusercontent.com/u/2331938?v=3","gravatar_id":"","url":"https://api.github.com/users/frasertweedale","html_url":"https://github.com/frasertweedale","followers_url":"https://api.github.com/users/frasertweedale/followers","following_url":"https://api.github.com/users/frasertweedale/following{/other_user}","gists_url":"https://api.github.com/users/frasertweedale/gists{/gist_id}","starred_url":"https://api.github.com/users/frasertweedale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frasertweedale/subscriptions","organizations_url":"https://api.github.com/users/frasertweedale/orgs","repos_url":"https://api.github.com/users/frasertweedale/repos","events_url":"https://api.github.com/users/frasertweedale/events{/privacy}","received_events_url":"https://api.github.com/users/frasertweedale/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T04:28:39Z","updated_at":"2016-11-21T04:28:39Z","body":"Yeah OK... as long as you promise to raise a ticket with Google to fix their implementation as well :)"}}
{"actor":{"display_login":"frasertweedale"}}