{"action":"created","issue":{"url":"https://api.github.com/repos/andrea-magni/MARS/issues/31","repository_url":"https://api.github.com/repos/andrea-magni/MARS","labels_url":"https://api.github.com/repos/andrea-magni/MARS/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/andrea-magni/MARS/issues/31/comments","events_url":"https://api.github.com/repos/andrea-magni/MARS/issues/31/events","html_url":"https://github.com/andrea-magni/MARS/issues/31","id":376554633,"node_id":"MDU6SXNzdWUzNzY1NTQ2MzM=","number":31,"title":"Authentication","user":{"login":"samuel-cruz","id":44683435,"node_id":"MDQ6VXNlcjQ0NjgzNDM1","avatar_url":"https://avatars0.githubusercontent.com/u/44683435?v=4","gravatar_id":"","url":"https://api.github.com/users/samuel-cruz","html_url":"https://github.com/samuel-cruz","followers_url":"https://api.github.com/users/samuel-cruz/followers","following_url":"https://api.github.com/users/samuel-cruz/following{/other_user}","gists_url":"https://api.github.com/users/samuel-cruz/gists{/gist_id}","starred_url":"https://api.github.com/users/samuel-cruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuel-cruz/subscriptions","organizations_url":"https://api.github.com/users/samuel-cruz/orgs","repos_url":"https://api.github.com/users/samuel-cruz/repos","events_url":"https://api.github.com/users/samuel-cruz/events{/privacy}","received_events_url":"https://api.github.com/users/samuel-cruz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-01T20:20:10Z","updated_at":"2018-11-07T12:45:29Z","closed_at":null,"author_association":"NONE","body":"Hello, I would like to know how to change the value of **JWT_SECRET_PARAM_DEFAULT** without having to directly change the value of the counter.\r\n\r\nThe way you are here:\r\n\r\n_{TMARSToken}\r\n\r\nconstructor TMARSToken.Create (const AToken: string; const AParameters: TMARSParameters);\r\nbegin\r\n   Create (\r\n     AToken\r\n   , AParameters.ByName (JWT_SECRET_PARAM, **JWT_SECRET_PARAM_DEFAULT**) .AsString\r\n   , AParameters.ByName (JWT_ISSUER_PARAM, **JWT_ISSUER_PARAM_DEFAULT**) .AsString\r\n   , AParameters.ByName (JWT_DURATION_PARAM, JWT_DURATION_PARAM_DEFAULT) .AsExtended\r\n   );\r\nend;_\r\n\r\nI would like to change the JWT_SECRET_PARAM_DEFAULT and JWT_ISSUER_PARAM_DEFAULT values.\r\n\r\nI tried inheriting from the TMARSToken class, but I could not get TMARSmORMotJWTToken.LoadJWTToken to use my key to validate authentication."},"comment":{"url":"https://api.github.com/repos/andrea-magni/MARS/issues/comments/436611314","html_url":"https://github.com/andrea-magni/MARS/issues/31#issuecomment-436611314","issue_url":"https://api.github.com/repos/andrea-magni/MARS/issues/31","id":436611314,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjYxMTMxNA==","user":{"login":"samuel-cruz","id":44683435,"node_id":"MDQ6VXNlcjQ0NjgzNDM1","avatar_url":"https://avatars0.githubusercontent.com/u/44683435?v=4","gravatar_id":"","url":"https://api.github.com/users/samuel-cruz","html_url":"https://github.com/samuel-cruz","followers_url":"https://api.github.com/users/samuel-cruz/followers","following_url":"https://api.github.com/users/samuel-cruz/following{/other_user}","gists_url":"https://api.github.com/users/samuel-cruz/gists{/gist_id}","starred_url":"https://api.github.com/users/samuel-cruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuel-cruz/subscriptions","organizations_url":"https://api.github.com/users/samuel-cruz/orgs","repos_url":"https://api.github.com/users/samuel-cruz/repos","events_url":"https://api.github.com/users/samuel-cruz/events{/privacy}","received_events_url":"https://api.github.com/users/samuel-cruz/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T12:45:29Z","updated_at":"2018-11-07T12:45:29Z","author_association":"NONE","body":"Hi Andrea,\r\n\r\nI got it!\r\nI was doing FEngine.Parameters.Values [JWT_SECRET_PARAM]: = 'MyKey';\r\nInstead of doing FEngine.Parameters.Values ['MyApp.' + JWT_SECRET_PARAM]: = 'MyKey';\r\n\r\nI will continue to study your framework so that I can learn more about it."}}
{"actor":{"display_login":"samuel-cruz"}}