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
2
votes
1 answer

Logging in SFAuthenticationSession then opening a link in SFSafariViewController that does SSO

I'm using AppAuth-iOS for my AD B2C login, AppAuth-iOS uses SFAuthenticationSession for making authentication requests on iOS 11+. I assumed that when I call SFSafariViewController to open a link to a webapp that does SSO with the B2C, it will…
2
votes
1 answer

App Auth library Android throws "File not found exception" when requesting token

I am using AppAuth library for Oauth2 authentication. https://github.com/openid/AppAuth-Android I am using google's app auth example. https://codelabs.developers.google.com/codelabs/appauth-android-codelab/#0 I modified the urls as per my oauth…
Karu
  • 935
  • 2
  • 13
  • 32
2
votes
0 answers

Using AppAuth for Twitter, Paypal & Linkedin Sign in

I am unable to use any of these successfully. Twitter Config { "client_id": "", "redirect_uri": "https://callback.com/landing/twitter/login", "authorization_scope": "read", "discovery_uri": "", "authorization_endpoint_uri":…
user2536851
  • 314
  • 3
  • 11
2
votes
0 answers

Authentication with AppAuth-Android and aspnet core with IdS4

I have been struggling a fair bit for a few days trying implementing an authentication flow with AppAuth Android and IdentityServer4 within an aspnet core api. What I've managed to attain so far is Create what I think is necessary server side and…
Alex
  • 487
  • 1
  • 6
  • 19
2
votes
0 answers

Implementing AppAuth for Outlook API

The Outlook API tutorial is using this p2OAuth2 library for OAuth2 authentication purpose and further API calls. But can we change the authentication library to AppAuth-iOS? I have been using this for Google account integration and found it quiet…
hamedazhar
  • 990
  • 10
  • 26
2
votes
1 answer

RNAppAuth, iOS build failed, Unknown type name 'namespace', react-native-app-auth

I am trying to add react-native-app-auth to existing, but quite fresh project with Expo. I'm following your setup guide, so doing following steps: yarn add react-native-app-auth@2.2.0 --dev Add pod 'AppAuth', '>= 0.91' cd iso && pod…
mazikwyry
  • 197
  • 1
  • 10
2
votes
1 answer

AppAuth iOS Token Exchange Problems Azure AD

I built a AppAuth test app for android using an Azure AD tenant and it works ok. Now I am trying to the same with iOS (Swift 4) and failing when trying to exchange an access code for access token. No error is returned, I do get an idToken but no…
Igor
  • 569
  • 5
  • 24
2
votes
2 answers

AppAuth oidc invalid State error when authenticating against identity server

I've configured an identity server 3 as an IdP for a project, we have 3 clients: MVC web, IOS and Android. everything is good for MVC app, using Hybrid flow. for IOS and Android, using the native oidc client (AppAuth IOS and AppAuth android) is not…
Ali Bazzi
  • 21
  • 1
  • 3
2
votes
1 answer

How can I use the "plain" PKCE code challenge method with AppAuth?

By default, AppAuth sends a S256 PKCE code challenge on auth requests. If I need to interoperate with a server that only supports the plain code challenge method, how can I configure my authorization request?
William Denniss
  • 16,089
  • 7
  • 81
  • 124
1
vote
0 answers

AppAuth for android - hide logout screen

I have an Android app developed in JAVA. For this app I am using the IdentityServer4 and AppAuth library implementation (found here: https://github.com/openid/AppAuth-Android) . Everything works fine, but one annoying thing left. Can anyone help me…
mikecalm
  • 21
  • 1
  • 4
1
vote
0 answers

Directory not found for option '-L/.../AppAuth'

I am getting this error for every search path in my Library Search Paths. Deleting all library search paths does get rid of the error but I need them. App auth is the first warning I get. ld: warning: directory not found for option…
MouseWarrior
  • 391
  • 4
  • 19
1
vote
0 answers

How to use google login authentication library

I am following tutorial but library for google login is deprecated, I have followed the advice for using the new library from and yet I get the error "can't find variable auth" screen shot: code: LoginScreen.js: import GoogleLogin from…
1
vote
1 answer

How to use "promptAsync" from expo-auth-session, old library used in video tutorial was deprecated

I have been following the tinder 2.0 react native tutorial https://youtu.be/qJaFIGjyRms At 1:04:00 he sets the sign in method to: "await Google.logInAsync()" but I have noticed the google app auth library used in the video is now deprecated, I am…
1
vote
0 answers

React Native App Auth keep prompting "User cancelled flow" when authorize

I am using the Example code of react-native-app-auth. It keeps prompting "Failed to log in - User cancelled flow" after I clicked the Authorize button. The provider is Okta and the configuration should be fine because it worked previously. I'm not…
Freddy
  • 23
  • 3
1
vote
0 answers

Microsoft/Azure logout doesn't redirect to back to my app

I have a simple Azure app registration and I have an android app where I use AppAuth to implement OAuth Microsoft/Azure login. Login works fine, I get the access token. Redirect from chrome tab back to app works fine. What doesn't work is the…
Egis
  • 5,081
  • 5
  • 39
  • 61