Ask Your Question
0

KeyRock Issue

asked 2015-08-06 04:05:22 +0100

Sam gravatar image

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). So 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. The method (out the only two available) we have chosen is "Resource Owner Password Credentials Grant."

In 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.

public void enter(View view){ onButtonClicked.start(); // if(cultureName == "Select culture") // { // Toast.makeText(this, "Please select culture!",Toast.LENGTHSHORT).show(); // } // else if(cultureName == null) // { // Toast.makeText(this, "Please check your internet connection!",Toast.LENGTHSHORT).show(); // } // else EditText user = (EditText)findViewById(R.id.editText1); username = user.getText().toString(); EditText pass = (EditText)findViewById(R.id.editText2); password = pass.getText().toString();

//if(username.equals("ad") && password.equals("ad")) {

  Intent intent = new Intent(this,MainActivity.class);
  startActivity(intent);
  IntroActivity.this.finish();

} //else { //Toast.makeText(getApplicationContext(),"Username or password are incorrect! Please try again!", Toast.LENGTH_LONG).show(); }

}

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-07 05:05:40 +0100

aalonsog gravatar image

Hi Sam,

I don't fully understand your question. What do you mean with " But we wish to use the esource Owner Password Credentials Grant that keyrock allows to use."?

BR

edit flag offensive delete link more

Comments

https://github.com/ging/fi-ware-idm/wiki/Using-the-FIWARE-LAB-instance This is what we mean: The FIWARE IdM complies with the OAuth2 standard described in RFC 6749. Currently we support two grant types, the Authorization Code Grant and the Resource Owner Password Credentials Grant.

Milos.Vranic gravatar imageMilos.Vranic ( 2015-08-13 06:37:13 +0100 )edit

We already support all the methods. Here is the updated documentation: http://fiware-idm.readthedocs.org/en/latest/oauth2/

aalonsog gravatar imageaalonsog ( 2015-09-16 05:34:22 +0100 )edit
0

answered 2023-12-13 08:12:37 +0100

Thank you so much for your help.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2015-08-06 04:05:22 +0100

Seen: 1,488 times

Last updated: Aug 07 '15