Giter Club home page Giter Club logo

accountauthenticator's Introduction

Authenticator Sample App

A sample app to demonstrate some of Android Authenticator's abilities.

screenshots    screenshots

This subject and source code is explained in my blog post at https://blog.udinic.com/2013/04/24/write-your-own-android-authenticator/

Developed By

License

Copyright 2013 Udi Cohen

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

accountauthenticator's People

Contributors

hidroh avatar turbo87 avatar udinic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

accountauthenticator's Issues

two app with same account

If we install both sample applications on single android device, only the first one can create account.
It seems that application with shared account should use same "android:sharedUserId".

Android Studio 3.0 throws build error after getting dependencies

Gradle 'AccountAuthenticator-master' project refresh failed

Error:Unsupported method: BaseConfig.getApplicationIdSuffix().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.

getAuthToken, getAuthTokenByFeatures returning Authtoken even after calling invalidateAuthToken

1>calling invalidateAuthToken button The application must call invalidateAuthToken(String, String) to remove the token from the cache, but after clicking the invalidateAuthToken button if we click getAuthTokenByFeatures button it's retrieving toke from cache!!? how it's retrieving token from deleted cache??

2>If it is loading new token where is the implementation in the method invalidateAuthToken loading new token? After invalidating the auth token, where it is calling immediately go back to the "Request an auth token". (auth token generated after invalidation before invalidation is same!)

No use of the values from prefs.xml

There is prefs.xml file with isDebug CheckBoxPreference and logsVerbose SwitchPreference but they are not used in the code.

An example showing how to use them (if it's possible) would be super useful.
If not then there is no need to have those prefs.xml in the first place.

Q: getAuthToken in Service Class

Please, tell me, is there a way of getting OuthToken in call getAuthToken in the Servis Class, as there is no Activity?
Thank you!

Can't signin or create account

I keep getting this error after click "Create Account" or "Sign up" :
"java lang illegalstateexception expected begin_object but was string at line 1 column 1"

Account does not show up in accounts list on Galaxy S3

When running the application on my phone, api 16, if I go under Settings → Accounts and Add Account I see Udinic in the list with a green ball next to it. When I tap it, the authentication screens display properly and I am able to authenticate. When I return to the accounts list, however, there is no entry for Udinic.

Permission Denial: starting Intent

I imported the project in Android Studio. When I press ADDACCOUNT, I get the following message

03-21 22:39:01.899  12718-12735/com.udinic.accounts_example W/Binder﹕ Caught a RuntimeException from the binder stub implementation.
    java.lang.SecurityException: Permission Denial: starting Intent { cmp=com.udinic.accounts_authenticator_example.test/com.udinic.accounts_authenticator_example.authentication.AuthenticatorActivity (has extras) } from ProcessRecord{37027392 12718:com.udinic.accounts_example/u0a315} (pid=12718, uid=10315) not exported from uid 10286
            at android.os.Parcel.readException(Parcel.java:1540)
            at android.os.Parcel.readException(Parcel.java:1493)
            at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:2433)
            at android.app.Instrumentation.execStartActivity(Instrumentation.java:1547)
            at android.app.Activity.startActivityForResult(Activity.java:3746)
            at android.app.Activity.startActivityForResult(Activity.java:3707)
            at android.app.Activity.startActivity(Activity.java:4027)
            at android.app.Activity.startActivity(Activity.java:3989)
            at android.accounts.AccountManager$AmsTask$Response.onResult(AccountManager.java:1710)
            at android.accounts.IAccountManagerResponse$Stub.onTransact(IAccountManagerResponse.java:59)
            at android.os.Binder.execTransact(Binder.java:446)

Can I run same service under multiple users with this?

I'm building a service. Now, I want to make two users for app: 'admin and other'. Admin will start the service. I want this service to run even after admin logs out. Is it possible? If possible, I want to add: this service will create some notification periodically. I want to show those notifications to all users but only admin user should be able to stop the service. It will be better if I'm able to hide it from 'other' user. There is a feature for multi-user in Android 4.4 but they haven't mentioned specifically whether this can be done or not. There are apps like switch me but again, they do not mention explicitly for this. Any code, app or anything will be very helpful

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.