nextcloud / nextcloud/Android-SingleSignOn
Question: Drop use of androids build in AccountManager
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 74
- Fork
- 36
- Merge medio
- 1g 19h
- PR unite (30g)
- 17
Descrizione
@tobiasKaminsky Just throwing in some thoughts here. As we had a bunch of issues already when trying to figure out which accounts exist, I was thinking about if we can drop the need to use the Android "AccountManager" at all. As of Android 9 getting accounts from another app is even more difficult. Therefore dropping it makes things easier for all involved parties.
Advantages:
- reauthentication works without the need to request the account permission again (way easier for client apps as we don't need to restart the login flow)
- Custom dialog for choosing the account (nextcloud design / theme)
- reduce complexity of account handling (in the sso library)
Disadvantages:
- None?
So basically what I'm proposing is:
- Instead of calling the account manager to show us available accounts, we create a new custom activity in the files app for that. (Reference)
- The files app lists all accounts available (as the files app has the required permission for that)
- The users selects an account here
This also might be interesting for @desperateCoder @stefan-niedermann
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con il AccountImporter.java indicato nella libreria Android-SingleSignOn e verifica come AccountManager fornisce attualmente gli account. Esamina quindi l’integrazione proposta della files app e il flusso dell’attività personalizzata. Il lavoro è completato quando la files app può elencare gli account disponibili e restituire la selezione dell’utente senza richiedere al client di usare AccountManager.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- authentication, mobile
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100