appauth

An error occurred while executing doInBackground() for keyclock authService.performTokenRequest() function

左心房为你撑大大i 提交于 2021-02-08 10:38:46
问题 While integrating Keyclock SDK , I try to exchange authorization code to access token authService.performTokenRequest( resp.createTokenExchangeRequest(), new AuthorizationService.TokenResponseCallback() { @Override public void onTokenRequestCompleted( TokenResponse resp, AuthorizationException ex) { if (resp != null) { // exchange succeeded } else { // authorization failed, check ex for more details } } }); I got the following error, java.lang.RuntimeException: An error occurred while

What prevents another app from stealing my Google OAuth client ID?

爷,独闯天下 提交于 2021-01-01 02:41:12
问题 I created an Android app that uses AppAuth to authenticate with Google OAuth. In the Google Cloud Platform Console, I created an Android OAuth 2.0 client ID for my app and provided the app package name and signing-certificate fingerprint. Everything is working fine. I wanted to verify that only my app can use that client ID. So I created a second app with a different package name and signed it with a different signing certificate. Using that same client ID, I'm still able to authenticate with

Logout in AppAuth-Android

泄露秘密 提交于 2020-12-05 06:21:37
问题 I have an Android app developed in JAVA. For this app I am using the IdentityServer4 as my STS and everything is working fine. But i couldn't find any implementation to logout in AppAuth library. Can anyone help me on this? I really need the logout option in my app, so the users can logout from the app when ever they want and log back in again. Any ideas, samples would be greatly appreciated. 回答1: I am the lead maintainer of AppAuth. Logout is usually as simple as discarding the AuthState

PendingIntent with implicit intent returning cancelled exception when using OpenId AppAuth-Android library

浪尽此生 提交于 2020-07-30 07:09:56
问题 I am trying to implement oauth2 to enable users to login with Reddit. I have created my app on reddit with the appropriate redirect uri. What I did: A MainActivity with a login button. Clicking the login button, starts the authorization flow. To create the authorization request, we need to pass a pending intent that the library uses to call the appropriate component that we want it to call after authorization is successful. Problem: When the pending intent is made using an implicit intent

onNewIntent is never gets called - Android

放肆的年华 提交于 2020-07-16 08:40:57
问题 I am trying to create a simple oauth2 flow using AppAuth. I am following this tutorial of AppAuth. It is doing good up to making an oauth request but after authorization when it comes to main activity then it never calls onNewIntent, I also checked the question discussed here. Edit: When I use onResume method then it comes to onResume method after authorization but with "android.intent.action.MAIN" action. Where it should come with "com.google.codelabs.appauth.HANDLE_AUTHORIZATION_RESPONSE"

Chrome custom tab gets sometimes stuck at blank screen during login

╄→гoц情女王★ 提交于 2020-01-04 05:37:09
问题 We recently integrated AppAuth into our application to automate the OAuth2 authorization code flow. When user wants to login, he is first redirected to our auth server, where he proceeds with the login, and then gets redirected back to the application. We use chrome-custom-tabs to for opening the login page (AppAuth). The problem is that it sometimes gets stuck at a blank screen (chrome tab displays just blank page without the rendered site or redirect). This happens when the user already has

Send email in Gmail API - Objective C

守給你的承諾、 提交于 2019-12-25 09:00:03
问题 We are working on an iOS project that involves sending emails through the Gmail API and we are having trouble finding documentation on how to actually do this. First, we haven't completely figured out authentication. We are using AppAuth to handle that, and it's worked pretty well so far, but we are not quite sure how to link that up to the Gmail API in our code. Second, how do we send the message itself? We have the content and everything formatted, we just can't figure out how to actually

Cross-client Google OAuth: Get auth code on iOS and access token on server

跟風遠走 提交于 2019-12-18 06:26:38
问题 I'm trying to set up Google OAuth with my iOS app and Rails web app. I have 2 separate clients (with of course different client IDs, but with the same prefix) set up in the API Console. One for the iOS app, and the other for the web app (which also has a client_secret . I want to use the AppAuth SDK on iOS to get the user's auth code, then send that to my web app, which will then perform the exchange for the access token. First of all, does this sound like a reasonable thing to do, or is it

[Error: ExpoAppAuth.Get Auth: JSON deserialization error]

穿精又带淫゛_ 提交于 2019-12-11 15:20:50
问题 Getting an error using AppAuth from 'expo-app-auth'; When i try to authi get the following error: [Error: ExpoAppAuth.Get Auth: JSON deserialization error] const config = { serviceConfiguration: { authorizationEndpoint: 'https://api.netatmo.com/oauth2/authorize', tokenEndpoint: 'https://api.netatmo.com/oauth2/token', }, clientId: 'cilentid', clientSecret: 'cilentsecret', scopes: ['read_presence'] } Is it something with the config? 回答1: Your config is not valid. This is related to the issue at

Additional alert shows up using AppAuth to authenticate in swift4

送分小仙女□ 提交于 2019-12-10 14:40:06
问题 I am using AppAuth 0.90.0 for authentication using an external authentication server where a user can log in so the app receives appropriate authentication tokens. Since recently (after upgrade to swift 4) I get the following alert before I get sent to the authentication server: "App Name" Wants to Use "externalAuthentication.com" to Sign in" This allows the app and website to share information about you. Has someone experienced the same issue and/or has a solution so the user does not need