{"action":"created","issue":{"url":"https://api.github.com/repos/dvsekhvalnov/jose-jwt/issues/63","repository_url":"https://api.github.com/repos/dvsekhvalnov/jose-jwt","labels_url":"https://api.github.com/repos/dvsekhvalnov/jose-jwt/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/dvsekhvalnov/jose-jwt/issues/63/comments","events_url":"https://api.github.com/repos/dvsekhvalnov/jose-jwt/issues/63/events","html_url":"https://github.com/dvsekhvalnov/jose-jwt/issues/63","id":225080974,"number":63,"title":"Ability to customise algorithm and encryption mappings","user":{"login":"freeman","id":7547,"avatar_url":"https://avatars2.githubusercontent.com/u/7547?v=3","gravatar_id":"","url":"https://api.github.com/users/freeman","html_url":"https://github.com/freeman","followers_url":"https://api.github.com/users/freeman/followers","following_url":"https://api.github.com/users/freeman/following{/other_user}","gists_url":"https://api.github.com/users/freeman/gists{/gist_id}","starred_url":"https://api.github.com/users/freeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeman/subscriptions","organizations_url":"https://api.github.com/users/freeman/orgs","repos_url":"https://api.github.com/users/freeman/repos","events_url":"https://api.github.com/users/freeman/events{/privacy}","received_events_url":"https://api.github.com/users/freeman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-04-28T13:29:04Z","updated_at":"2017-05-01T18:42:32Z","closed_at":null,"body":"Hello,\r\n\r\nWe use a vendor provided authentication solution where the JWT do not correctly implement the specifications. Namely the `alg` and `enc` headers are not set to the correct value.\r\n\r\nCurrently the mapping between the header values and the algorithm used is static and seems not modifiable by user of the library.\r\n\r\nIt seems there is some code for aiming in this direction in [JWT.cs](https://github.com/dvsekhvalnov/jose-jwt/blob/27beaff995bdd1385d58846062999e39d5b773a9/jose-jwt/JWT.cs#L71) but it does not seem to be publicly accessible.\r\n\r\nWould you be interested in a PR allowing to customize the mappings ?\r\n"},"comment":{"url":"https://api.github.com/repos/dvsekhvalnov/jose-jwt/issues/comments/298398901","html_url":"https://github.com/dvsekhvalnov/jose-jwt/issues/63#issuecomment-298398901","issue_url":"https://api.github.com/repos/dvsekhvalnov/jose-jwt/issues/63","id":298398901,"user":{"login":"dvsekhvalnov","id":2323986,"avatar_url":"https://avatars1.githubusercontent.com/u/2323986?v=3","gravatar_id":"","url":"https://api.github.com/users/dvsekhvalnov","html_url":"https://github.com/dvsekhvalnov","followers_url":"https://api.github.com/users/dvsekhvalnov/followers","following_url":"https://api.github.com/users/dvsekhvalnov/following{/other_user}","gists_url":"https://api.github.com/users/dvsekhvalnov/gists{/gist_id}","starred_url":"https://api.github.com/users/dvsekhvalnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvsekhvalnov/subscriptions","organizations_url":"https://api.github.com/users/dvsekhvalnov/orgs","repos_url":"https://api.github.com/users/dvsekhvalnov/repos","events_url":"https://api.github.com/users/dvsekhvalnov/events{/privacy}","received_events_url":"https://api.github.com/users/dvsekhvalnov/received_events","type":"User","site_admin":false},"created_at":"2017-05-01T18:42:32Z","updated_at":"2017-05-01T18:42:32Z","body":"Need to think about encoding little bit.\r\n\r\nWell, for now i'd say `JwtSettings` is right place to do it. I'd suggest `JwtSettings.RegisterAlias(string alias, JweEncryption alg)` to be consistent with rest of API.\r\n\r\nIf you interested to do PR, i'm perfectly fine with it."}}
{"actor":{"display_login":"dvsekhvalnov"}}