{"action":"closed","issue":{"url":"https://api.github.com/repos/SAF2/documentation/issues/48","labels_url":"https://api.github.com/repos/SAF2/documentation/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/SAF2/documentation/issues/48/comments","events_url":"https://api.github.com/repos/SAF2/documentation/issues/48/events","html_url":"https://github.com/SAF2/documentation/issues/48","id":99239160,"number":48,"title":"Keyrock issue","user":{"login":"PanonitMilos","id":11771731,"avatar_url":"https://avatars.githubusercontent.com/u/11771731?v=3","gravatar_id":"","url":"https://api.github.com/users/PanonitMilos","html_url":"https://github.com/PanonitMilos","followers_url":"https://api.github.com/users/PanonitMilos/followers","following_url":"https://api.github.com/users/PanonitMilos/following{/other_user}","gists_url":"https://api.github.com/users/PanonitMilos/gists{/gist_id}","starred_url":"https://api.github.com/users/PanonitMilos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PanonitMilos/subscriptions","organizations_url":"https://api.github.com/users/PanonitMilos/orgs","repos_url":"https://api.github.com/users/PanonitMilos/repos","events_url":"https://api.github.com/users/PanonitMilos/events{/privacy}","received_events_url":"https://api.github.com/users/PanonitMilos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-05T16:02:19Z","updated_at":"2015-10-12T06:01:23Z","closed_at":"2015-10-12T06:01:23Z","body":"We are developing an Android application and want to authenticate our users based on the keyrock instance from the Fiwarelab (temporarily before installing our own Keyrock instance on our server).\r\nSo we have imagined this being exactly like google or facebook sign in. We want to use the public and private keys provided while registering the app.\r\nThe method (out the only two available) we have chosen is \"Resource Owner Password Credentials Grant.\"\r\n\r\nIn our test authentication method we only created a simple code to check for username and pass. But we wish to use the esource Owner Password Credentials Grant that keyrock allows to use.\r\n\r\n\r\n    public void enter(View view){\r\n     onButtonClicked.start();\r\n    //     if(cultureName == \"Select culture\")\r\n    //     {\r\n    //      Toast.makeText(this, \"Please select culture!\",Toast.LENGTH_SHORT).show();\r\n    //     }\r\n    //     else if(cultureName == null)\r\n    //     {\r\n    //      Toast.makeText(this, \"Please check your internet connection!\",Toast.LENGTH_SHORT).show();\r\n    //     }\r\n    //     else\r\n     EditText user = (EditText)findViewById(R.id.editText1);\r\n     username = user.getText().toString();\r\n     EditText pass = (EditText)findViewById(R.id.editText2);\r\n     password = pass.getText().toString();\r\n     //if(username.equals(\"ad\") && password.equals(\"ad\"))\r\n     {\r\n      \r\n          Intent intent = new Intent(this,MainActivity.class);\r\n          startActivity(intent);\r\n          IntroActivity.this.finish();\r\n     }\r\n     //else\r\n     {\r\n      //Toast.makeText(getApplicationContext(),\"Username or password are incorrect! Please try again!\", Toast.LENGTH_LONG).show();\r\n     }\r\n     \r\n    }\r\n\r\n\r\nAny kind of help, examples, hello world, would be more than welecome. Thank you!"}}