Questions tagged [appauth]

Tag for the AppAuth library. Use in conjunction with a platform specific tag like `ios`, `android` or `electron`.

AppAuth is an SDK for native applications that facilitates interaction with OAuth2 and OpenID Connect authorization servers. Platform specific libraries are available for Android, iOS and JS-based environments like Node and Electron.

AppAuth follows the current best practice for federated authentication and authorization in native apps. This includes:

  • Using in-app browser tabs for user interaction, when available, such as Chrome Custom Tabs on Android, and SFSafariViewController on iOS.
  • Support for both custom scheme and [universal link][universal-link] / [app link][app-link] redirect URIs.
  • Support for PKCE, a standardized authorization code protection scheme.

The code is open source (Apache2) and are maintained by the OpenID Foundation.

Homepage: https://appauth.io/
Android library: https://github.com/openid/AppAuth-Android
iOS library: https://github.com/openid/AppAuth-iOS
JS library: https://github.com/openid/AppAuth-JS

188 questions
1
vote
1 answer

AppAuth-Android strange problem in handling NOT hierarchical URI callback intent

I am using AppAuth-Android in my app to handle the OAuth flow. When the flow starts, I call the startActivityForResults method as described in the https://github.com/openid/AppAuth-Android#obtaining-an-authorization-code step. After calling this…
Stefano Zanella
  • 83
  • 2
  • 11
1
vote
2 answers

Issue AppAuth iOS "invalid_grant: Bad Request"

I have used AppAuth iOS for access Google Drive, 10 days ago, everything worked fine, I could fetch files from my drive normally. But today, (I have not changed code for 10 days) I can not fetch files, it's having this issue: Error…
Minh Văn
  • 51
  • 1
  • 4
1
vote
1 answer

Calling AppAuth sign out / endsession endpoint using IdentityServer4 in Flutter on iOS

I am using the flutter_appauth package in Flutter to handle authorization code flows against IdentityServer4 and have been unable to find a method by which to call the /endsession endpoint in iOS. To get an idea of what I'm trying to do, this is my…
Jon Halliday
  • 395
  • 3
  • 14
1
vote
0 answers

AppAuth iOS Share access token between two apps

I Currently have a swift application that uses AppAuth to sign in and authorise API calls to the backend server. I want to develop a second application, but have it share access tokens: i.e if you are already signed into the first app then you do…
Chris S
  • 203
  • 3
  • 6
1
vote
0 answers

Google OAuth2 on Mac Catalyst App: "invalid_grant" when exchanging authorization_code with refresh_token

We've an app that successfully performs Google sign-in from different clients: web, iOS app, Android app. We're now trying to integrate Google Sign-in on a Mac Catalyst version of our iOS app. We use the hybrid flow, we generate the authorization…
1
vote
1 answer

OAuth2/Azure AD B2C parameters stripped from external web browser in iOS

I've developed an application using React Native for Android. Now that I have a mac I am porting the app for iPhone. iPhone seems to work fine except for authentication. For authentication I'm using React Native App Auth(RNAppAuth) and Azure AD B2C.…
Highspeed
  • 442
  • 3
  • 18
1
vote
1 answer

What response is AppAuth looking for to close the browser window and complete request?

I am trying to use AppAuth to get an auth code from Instagram, redirect to my server, and exchange that auth code for a custom Firebase token. I'm having problems passing data to AppAuth and triggering the browser window to close. What works so…
Luke Pighetti
  • 4,541
  • 7
  • 32
  • 57
1
vote
0 answers

How can I pass client_id and client_secret in the body of the token exchange request using the react-native-app-auth package?

I am trying to use the otherwise excellent react-native-app-auth to handle the OAuth part of an app I'm working on. The server I am contacting expects to have the client_id and client_secret included in the body of the token exchange POST request,…
1
vote
0 answers

How to Implement Google Authentication Using Expo.AppAuth in a Bare React Native Application?

I am trying to implement Google authentication using Expo.AppAuth in my react native bare application (not managed by Expo). I am using the expo-app-auth package. I created a Client ID on Google Developer Console using the following bundle ID…
Pasha
  • 333
  • 2
  • 3
  • 9
1
vote
1 answer

iOS 12 - AppAuth redirect URL not trigger AppDelegate

I am using AppAuth on my code. I manage to authenticate successful , but when the SFSafariViewController gets dismiss from my Controller , the redirect url does not trigger the AppDelegate func application(_ app: UIApplication, open url: URL,…
P S
  • 527
  • 4
  • 18
1
vote
1 answer

How to use Expo AppAuth module with IdentityServer4

I am trying to use the Expo AppAuth module to do authentication using IdentityServer4 in react native. Cant seem to get the redirectUri settings right. I'm getting an 'invalid redirect uri" error when i redirect to identityServer. This is my client…
Chitova263
  • 719
  • 4
  • 13
1
vote
1 answer

AppAuth - external browser window wont open?

i am using the AppAuth library for a custom single sign-on in my app written in objective c. So far i have managed to get it to work in swift but when i use the same code converted to objective c the browser is not opened. This is what i have so…
kMose
  • 69
  • 1
  • 8
1
vote
0 answers

AppAuth podspec recursive weak_frameworks is not installed as weak

I have an app with deployment target iOS 9.3. I'm using the AppAuth library (appauth.io) and in the podspec it has a reference to Apples AuthenticationServices SDK. This SDK is only available from iOS 12+. Therefore it is linked with a…
esbenr
  • 1,356
  • 1
  • 11
  • 34
1
vote
2 answers

Modify AppAuth alert

I am using AppAuth (0.95) to access google mail on my IOS app. Before redirecting to google sign-in, i get an alert with this message. 'Appname' wants to use google.com to sign in. This allows the app and website to share information about…
SomeGuyFortune
  • 1,024
  • 13
  • 26
1
vote
0 answers

Identity Server 4 with appAuth - How do i set additionalParameters for appAuthResponse in IDS4

We are using the React Native appAuth library(https://github.com/FormidableLabs/react-native-app-auth) with Identity Server 4. and attempting to make use of the additionalParameters on the response. The reason for this is we have a language selector…