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
3
votes
0 answers

AppAuth, Redirect URI, Stackexchange, Instagram API

I want to make OAuth2 authorization. I use : implementation "net.openid:appauth:0.7.0" I have studied many examples (Google Codelabs, AppAuth etc). I also studied RFC 8252. I wanted to apply this to Stackexchange and Instagram OAuth API. I…
tim4dev
  • 2,846
  • 2
  • 24
  • 30
3
votes
2 answers

Custom Tabs with onPageFinished() and onPageStart() behavior

I have to implement Custom Tabs into a app that uses a webview login with OAuth functionality. Is there a way to have to same behavior as onPageStart() and onPageFinished() into Chrome Custom Tabs?
James ONeal
  • 131
  • 2
  • 4
2
votes
1 answer

iOS SSO with ASWebAuthenticationSession and SFSafariViewController

We have a native application that we're prototyping which needs to: Authenticate a User to fetch an Access Token as a public client via OIDC (OAUTH2) Render Web Content, in-app, from our web site which is protected by the same IdP (Keycloak) as the…
Josh Harness
  • 377
  • 1
  • 5
  • 16
2
votes
2 answers

How to get OAuth2 working with SwiftUI without wrapping old libraries?

I tried to authenticate my app with spotifys api in order to get the users favorite songs but couldn’t get through the OAuth2 protocol. I’ve tried the rever tutorial but It didn’t cache the tokens nor did it work properly. I’ve looked at the AppAuth…
pedzer
  • 142
  • 11
2
votes
1 answer

OAuth2 Redirect URI not valid

I'm trying to authenticate to OpenStreetMap via OAuth2 using AppAuth. Via Custom Tab I can retrieve the authorization code but the redirect URI does not open my app but gives an Address Not Found error in the Custom Tab. As you can see as I was…
Kiryu
  • 55
  • 1
  • 6
2
votes
1 answer

How can you update an iOS Simulator deployment target using Swift Package Manager?

Does anyone know how to update the Simulator deployment target using SwiftPM? Based on my research I have not found any good solution other and reimplement a new package. I found and know how to update the minimum targets using CocoaPods but not…
2
votes
1 answer

AppAuth Android not closing browser redirect response on second try (why it is not idempotent action)

I am using AppAuth library for Android to connect to an OIDC server which is not from the list of well known vendors like Okta, Google, etc. This vendor does not support custom url schemas. It only supports https redirects. I configured my app based…
anchor
  • 755
  • 2
  • 8
  • 17
2
votes
2 answers

Deprecation Warning for AppAuth

I got some warning message. Most of them disappeared after updating related Pods. But these 3 warnings are still there. I don't have the AppAuth pod but the Firebase/Auth and Firebase/Core. What should I do to get rid of them? Thanks, Below is the…
2
votes
2 answers

Refreshing auth token with AppAuth library on iOS

I'm using the AppAuth library to get an access token for the Gmail API. I've successfully been able to create an Auth Session, and use the retrieved token to later fetch the emails. In my AppDelegate I have two variables: var…
narner
  • 2,908
  • 3
  • 26
  • 63
2
votes
1 answer

react native xcode error | ld: library not found for -lAppAuth

i have been struggling with this for almost 2 weeks. here is the error: ld: warning: directory not found for option…
2
votes
2 answers

AppAuth login redirection works on iOS but not on Android

I'm developing a mobile application in Flutter/Dart and I'm currently working on identity management, specifically the login functionality. I'm using a library called flutter_appauth which is a wrapper for the AppAuth library. I'm having a strange…
2
votes
0 answers

ExpoAppAuth + Instagram Error: ExpoAppAuth.Get Auth: JSON deserialization error

just trying to receive access token from instagram api. I am using expo app-auth and running on android. My usage is straight from demo https://docs.expo.io/versions/latest/sdk/app-auth/#usage Of course I changed config to: let config = { issuer:…
Adam
  • 21
  • 2
2
votes
1 answer

AppAuth in IOS App, issue when renewing authorization Code / Alert briefly shows then goes

I'm using AppAuth pod to handle user login with Azure in my app. I followed this sample : https://github.com/openid/AppAuth-iOS/tree/master/Examples which works fine until my authentication code expires. It works ok for the 1st connection and all…
2
votes
1 answer

Android AppAuth - following the PendingIntent object

I've been trying to implement Google's AppAuth library in Android but I'm struggling to get this working. I've been trying to follow the guide from Google and apply that to my own codebase but I'm stuck around the pending intents. More specifically,…
rj2700
  • 1,770
  • 6
  • 28
  • 55
2
votes
0 answers

Is my Mobile Application SaaS Single Sign On Flow Correct?

I work for a B2B SaaS company which services companies that have different Single Sign On providers. We're working on integrating SSO into the mobile and server side of things using Open Id Connect & OAuth2.0 protocols. I'm just double checking that…
Matthew Bahr
  • 337
  • 1
  • 15