I am trying to create an admin only login on android studio using storm path. I am able to login any account right now, but I want to limit the people who can login based on who is in the Admin group in strompath.
StormpathCallback<Void> loginCallback = new StormpathCallback<Void>() {
@Override
public void onSuccess(Void aVoid) {
Stormpath.getAccessToken();
finish();
startActivity(new Intent(LoginActivity.this, (Class) redirectActivity));
}
@Override
public void onFailure(StormpathError error) {
showAlert();
// finish();
//startActivity(new Intent(LoginActivity.this, (Class) redirectActivity));
}
};