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

162 questions
34
votes
2 answers

Navigation is blocked error in Chrome 61+ on Android

I'm building a login page that, upon submitting and validation of the user credentials, opens up a native mobile application. Up till last week, I had this working cross mobile OS by using a custom scheme URI, something like: function…
thomaux
  • 17,387
  • 9
  • 71
  • 94
15
votes
1 answer

"Navigation is blocked" when redirecting from Chrome Custom Tab to Android app

I'm 'modernizing' our login widget to use Chrome Custom Tabs as Google will start blocking OAuth requests using Webviews in a few months. The login widget works with our Identity Service, which supports classic 'username&password' login and Social…
Free Willaert
  • 929
  • 1
  • 10
  • 23
12
votes
4 answers

AppAuth iOS. How to save the token info after user registers an account in my own OAuth2 server

I have an iOS app and a backend written in Spring with OAuth2 mechanizm implemented. I have a signup endpoint in my backend, which accepts some user data and returns an OAuth2 response, e.g. { …
fiks
  • 965
  • 7
  • 20
11
votes
1 answer

SSO approach for native mobile app with web views?

So the standard SSO approach for native mobile apps (both Android and iOS) appears to be OAUth2 + OpenID Connect via the AppAuth library. That's all well and good -- and actually seems to approach elegance. But what if the very same app contains…
Jess Holle
  • 583
  • 4
  • 13
9
votes
2 answers

Expo Google Login redirect to google.com in standalone

my app bild with Expo , i use import * as Google from "expo-google-app-auth"; for signin users from google. in development mode its work correcctly like expected. but in standalone mode , its redirect me to choose email, and after i choose its…
9
votes
3 answers

App crash - AuthenticationServices Library not loaded

I'm trying to use AppAuth-iOS dev-logout branch and I tested on simulator 10.3.1. When I try to run the code I get this crash: dyld: Library not loaded: /System/Library/Frameworks/AuthenticationServices.framework/AuthenticationServices Reason:…
Torianin
  • 163
  • 2
  • 8
7
votes
0 answers

On iOS 12 (beta), AppAuth iOS seems to not have SSO between app and web

Today I am testing AppAuth-iOS apps on multiple iOS version (iOS 8-11), and AppAuth-iOS have SSO between apps and webs. However, when I tested the same apps on iOS 12 beta (both on real device and emulator), I found that there are no SSO between app…
Ng Sek Long
  • 2,493
  • 16
  • 28
7
votes
2 answers

Logout in AppAuth-Android

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…
Madhu
  • 504
  • 7
  • 11
6
votes
1 answer

Additional alert shows up using AppAuth to authenticate in swift4

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…
spijs
  • 1,335
  • 17
  • 32
6
votes
2 answers

AppAuth with Azure AD B2C

I have configured a B2C service in Azure AD and included Google as an authentication provider only to find that Google disallows authentication requests through an embedded web view. Then I found AppAuth but I'm having much difficulty getting the…
Doug Mitchell
  • 192
  • 1
  • 9
5
votes
1 answer

Flutter appauth Invalid parameter: redirect_uri

I have local instance of keylcoak and I am trying to connect my flutter app to it and for that I am following the this tutorial but I got stuck on this redirect_uri issue. In android's build.gradle I have added the following piece to default…
Maciej
  • 431
  • 1
  • 9
  • 15
5
votes
1 answer

Cannot get control back from web view to react native app in OAuth flow

I'm trying to implement Google OAuth 2 signin using FormidableLab's react-native-app-auth library in my react native android application as shown below: googleLoginPressed = async () => { const config = { serviceConfiguration: { …
Rakesh Singh
  • 748
  • 1
  • 10
  • 28
5
votes
2 answers

Chrome custom tab gets sometimes stuck at blank screen during login

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…
Smajl
  • 6,702
  • 23
  • 97
  • 163
5
votes
1 answer

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

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…
quantum
  • 1,360
  • 4
  • 20
  • 32
4
votes
2 answers

Invalid redirect_uri IdentityServer4 and AppAuth

I'm using the IdentityServer template that comes with asp.net core 3.1. So far so good, the SPA app works with the implicit flow. Now I have a mobile application that I want to use with the same identity server. So in appsettings.json i added a new…
Yehia A.Salam
  • 1,637
  • 5
  • 38
  • 79
1
2 3
10 11