Comments (8)
(If I modify the library to use the id_token
as though it were a refresh_token
, it actually works just fine and fetches the user info quite happily - I just would prefer not to have to modify the library to get it working)
from appauth-android.
Client secrets are not required for Google auth, and are strongly discouraged for mobile apps where the secret can be easily extracted from an APK. The demo app that is included in this repository includes instructions for configuring Google authentication, see here.
If you send the right authorization request you should be able to get an authorization code for a refresh token quite easily - the demo app does this already, and uses the retrieved access code for requests to the UserInfo endpoint: see here.
from appauth-android.
Thanks very much for the clarification. I think I would change the Google integration instructions to clarify that appauth.keystore is created by AppAuth-Android during the build process - I was looking for it whilst integrating the library and of course couldn't find it because it hadn't been run yet. I had assumed it was something generic to any Android project.
from appauth-android.
Ah, apologies for that. I tried to simplify the setup process by generating the keystore during the build but as you say this isn't specifically mentioned anywhere in the instructions. I'll try to clarify this point.
from appauth-android.
On that note: are we meant to copy and paste the generateKeystore task into our own project or is it meant to run automatically when our project expresses a dependency on the library?
from appauth-android.
It's just for convenience when developing AppAuth-Android - your own app should have its own keystore for debug and release. You're of course welcome to re-use this if you find it useful, but most apps will use the standard ~/.android/debug.keystore for debug and another more carefully managed keystore for release.
from appauth-android.
Wonderful, that makes a lot more sense now - perhaps the documentation could explain that (especially that debug path - I was conscious of my production keystore but not the debug one). Thank you!
from appauth-android.
And now I see that Google documents that location within the tool where you create API credentials... not sure how I missed that last time. Thanks again.
from appauth-android.
Related Issues (20)
- Getting Activity Not Found Exception When trying to authorize the request
- Authorization canceled error. HOT 3
- Fatal Exception: java.lang.SecurityException: Binder invocation to an incorrect interface HOT 2
- What is authorization end point an token end point in the case of FHIR services From Epic HOT 5
- Do not open browser HOT 5
- User cancelled flow HOT 2
- Using this lib for oAuth flow HOT 2
- Can this library be used on Android TV? HOT 3
- Oauth2.0
- [Spam] HOT 6
- Avoid Fatal Exception: net.openid.appauth.d: grant request is invalid in Firebase Crashlytics HOT 3
- Como la instalo con termux HOT 1
- Why Isn't AppAuth not using kotlin yet? HOT 2
- android.content.ActivityNotFoundException: When app opened HOT 5
- Incorrect documentation I think
- TokenResponse JSON parsing null values as "null" strings
- Zdd
- D
- Lisene
- Communication problems between AuthorizationManagementActivity and RedirectUriReceiverActivity are caused by an Android 14 task stack issue.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appauth-android.