{"action":"created","issue":{"url":"https://api.github.com/repos/oktadeveloper/okta-aws-cli-assume-role/issues/110","repository_url":"https://api.github.com/repos/oktadeveloper/okta-aws-cli-assume-role","labels_url":"https://api.github.com/repos/oktadeveloper/okta-aws-cli-assume-role/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/oktadeveloper/okta-aws-cli-assume-role/issues/110/comments","events_url":"https://api.github.com/repos/oktadeveloper/okta-aws-cli-assume-role/issues/110/events","html_url":"https://github.com/oktadeveloper/okta-aws-cli-assume-role/issues/110","id":314683618,"number":110,"title":"Programmatic access to the Okta AWS CLI functionality","user":{"login":"Hervian","id":7109864,"avatar_url":"https://avatars3.githubusercontent.com/u/7109864?v=4","gravatar_id":"","url":"https://api.github.com/users/Hervian","html_url":"https://github.com/Hervian","followers_url":"https://api.github.com/users/Hervian/followers","following_url":"https://api.github.com/users/Hervian/following{/other_user}","gists_url":"https://api.github.com/users/Hervian/gists{/gist_id}","starred_url":"https://api.github.com/users/Hervian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hervian/subscriptions","organizations_url":"https://api.github.com/users/Hervian/orgs","repos_url":"https://api.github.com/users/Hervian/repos","events_url":"https://api.github.com/users/Hervian/events{/privacy}","received_events_url":"https://api.github.com/users/Hervian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-16T14:43:36Z","updated_at":"2018-04-19T10:31:34Z","closed_at":null,"author_association":"NONE","body":"*Question*\r\n\r\nHi, I want to construct a GUI around the Okta AWS CLI tool. Or rather, around my AWS services and \r\naccounts, but being an Okta customer, I must use the Okta AWS CLI functionality for login.\r\n\r\nIs this possible?\r\n\r\nI can add a the project as a dependency to my own Java project using JitPack. But the jar file seem to contain a module-info.class which does not expose any packages. \r\nThis is the furst hurdle, which I can overcome by transforming my own project into a Java 8 project. \r\nCan you foresee any other problems and do you have plans on making your project be used like a dependency/a library? Right now if feels bit \"hackish\" to go down this road.\r\n\r\nExamples of implemention details that make programmatic usage of the project very difficult:\r\n\r\n- Most classes are package private (default class modifier)\r\n- Most classes are final, thereby preventing overriding.\r\n- The main method ends with a System.exit, and this call is not extracted into an overridable instance method.\r\n\r\nThe only way I can think of is to (somehow) invoke the main method as an external process (thereby preventing shutdown of my GUI on the call to System.exit) and (somehow) hijacking standard in and standard out such as to provide answers to the various questions (username, password and role selection). I do not know if all of this is possible, and if it is, it is very fragile.\r\nThe best thing would off course be if the project was slightly changed to accomadate this kind of usage.\r\n\r\nBest regards, Anders"},"comment":{"url":"https://api.github.com/repos/oktadeveloper/okta-aws-cli-assume-role/issues/comments/382688002","html_url":"https://github.com/oktadeveloper/okta-aws-cli-assume-role/issues/110#issuecomment-382688002","issue_url":"https://api.github.com/repos/oktadeveloper/okta-aws-cli-assume-role/issues/110","id":382688002,"user":{"login":"AlainODea","id":16341,"avatar_url":"https://avatars1.githubusercontent.com/u/16341?v=4","gravatar_id":"","url":"https://api.github.com/users/AlainODea","html_url":"https://github.com/AlainODea","followers_url":"https://api.github.com/users/AlainODea/followers","following_url":"https://api.github.com/users/AlainODea/following{/other_user}","gists_url":"https://api.github.com/users/AlainODea/gists{/gist_id}","starred_url":"https://api.github.com/users/AlainODea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlainODea/subscriptions","organizations_url":"https://api.github.com/users/AlainODea/orgs","repos_url":"https://api.github.com/users/AlainODea/repos","events_url":"https://api.github.com/users/AlainODea/events{/privacy}","received_events_url":"https://api.github.com/users/AlainODea/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T10:31:34Z","updated_at":"2018-04-19T10:31:34Z","author_association":"CONTRIBUTOR","body":"When I write “modular separation”, I was thinking JPMS modules within this same codebase as a start. Maven modules would be useful later. Only take this as far as you need to for your use case. Someone will come along who wants to depend on the library part externally and they can make the Maven piece happen :)"}}
{"actor":{"display_login":"AlainODea"}}