Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4179

FIWARE.Request.Tech.Security.IDM-KeyRock.KeyRock Issue

    Details

    • Type: Monitor
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      Created in FIWARE Q/A platform on 06-08-2015 at 11:08
      Answer this issue at https://ask.fiware.org/question/63/keyrock-issue/

      Question:
      <p>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."</p>

      <p>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.</p>

      <p>public void enter(View view){
      onButtonClicked.start();
      // if(cultureName == "Select culture")
      //

      { // Toast.makeText(this, "Please select culture!",Toast.LENGTH<em>SHORT).show(); // }

      // else if(cultureName == null)
      //

      { // Toast.makeText(this, "Please check your internet connection!",Toast.LENGTH</em>SHORT).show(); // }

      // else
      EditText user = (EditText)findViewById(R.id.editText1);
      username = user.getText().toString();
      EditText pass = (EditText)findViewById(R.id.editText2);
      password = pass.getText().toString();</p>

      <p>//if(username.equals("ad") && password.equals("ad"))

      {</p> <pre><code> Intent intent = new Intent(this,MainActivity.class); startActivity(intent); IntroActivity.this.finish(); </code></pre> <p>}

      //else

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

      </p>

      <p>}</p>

        Activity

        Hide
        aalonsog Alvaro Alonso added a comment -

        Done, thanks!

        Show
        aalonsog Alvaro Alonso added a comment - Done, thanks!

          People

          • Assignee:
            aalonsog Alvaro Alonso
            Reporter:
            mev Manuel Escriche
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: