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

Android Import AppAuth Library as a module

I need to modify a class in the AppAuth library https://github.com/openid/AppAuth-Android I have trided importing the library module from the source as a module via Android Studio, but it errors on compiling since the app auth library module…
John
  • 2,551
  • 3
  • 17
  • 29
1
vote
0 answers

How to achieve certificate pinning with Open ID appAuth?

I'm using AppAuth for my iOS and android app. After android N, android has a way to add certificate pinning to all network requests while iOS has nothing like this. Now I used TrustKit to achieve this in my API calls but how do I achieve certificate…
Renegade
  • 642
  • 1
  • 10
  • 19
1
vote
2 answers

invalid Client for exchange code _ identityserver3 _ AppAuth

I'm using AppAuth framework for authentication in my Swift app, I can login but after login and coming back to my app, I can't exchange the code and get error invalid client. My client configuration is: var client = new Client { ClientId =…
Mahdi Asgari
  • 272
  • 1
  • 13
1
vote
0 answers

Using Keycloak as OIDC server for both web and mobile clients

I'm playing with a project that has the following configuration: Keycloak as OIDC server Play framework with Pac4J as security library and Pac4J-Play as an interface Mobile iOS client with AppAuth as OIDC adapter When dealing with API through web…
1
vote
1 answer

AWS cognito integrate with AppAuth

I need to do an authorization workflow on a Cognito user pool for a mobile app with self-hosted login/signUp screen. I have tested the login/sign up to Cognito user pool with a native UI screen, but I need it to work with the self-hosted Cognito…
manuelBetancurt
  • 15,428
  • 33
  • 118
  • 216
1
vote
2 answers

AppAuth Implicit Grant

I am trying to get AccessToken from a OAuth2 based server using Implicit grant using AppAuth . after this below code redirected to browser for sign in AuthorizationService service = new AuthorizationService(this, new…
ccaring
  • 33
  • 3
1
vote
0 answers

How Doorkeeper implements refreshing a token for PKCE client

I'm using the newest version of Doorkeeper (which is a wonderful gem) and enabled PKCE. It works great for authorization flow (I use authorization_code). However, when I'm trying to refresh token later I'm getting 401.…
mazikwyry
  • 197
  • 1
  • 10
1
vote
1 answer

Authorization Code with Proof Key token request results in invalid client response

I'm currently evaluation AppAuth (https://appauth.io/) for use in a native mobile app together with a STS which currently uses IdentityServer3. I've configured a client like this: new IdentityServer3.Core.Models.Client { Enabled = true, …
KwaXi
  • 123
  • 10
1
vote
1 answer

Java Package is not public and cannot be accessed outside package

Hi I am not a pro java developer but I am trying to write an android native component for react native but I am facing following error log while writing…
Adnan Ali
  • 2,890
  • 5
  • 29
  • 50
1
vote
0 answers

Using OAuth2 in Android app to get Token for Strava API

I'd like to enable "upload activity to Strava" in my Android app. For that I need a token. Strava uses OAuth2 and I suppose it's really not much of a problem to authenticate and get a token in a web application. But when using it inside a native…
hgoebl
  • 12,637
  • 9
  • 49
  • 72
1
vote
1 answer

AppAuth Unknown url scheme

I have an issue with handling redirecting from webview back to app using AppAuth. I keep getting net::ERR_UNKNOWN_URL_SCHEME. In my build.gradle I declared manifest placeholder in defaultConfig manifestPlaceholders= [ 'appAuthRedirectScheme':…
TheJudge
  • 576
  • 1
  • 9
  • 30
1
vote
0 answers

Okta SSO on a iOS (across apps restarts and between apps)

I am experimenting with Okta and the okta-openidconnect-appauth-ios test program (project name OpenIDConnectSwift) to see how Okta SSO works on iOS 11. This app leverages the AppAuth library for OIDC. I have set up the test program and was able to…
Locksleyu
  • 5,192
  • 8
  • 52
  • 77
1
vote
0 answers

AppAuth-iOS fails using OpenID 2.0 and Forgerock

I am trying to use this library (AppAuth-iOS) to authenticate via Forgerock using OpenID authentication 2.0. When I run this sample app, choosing "Authorize auto" I manage to authenticate the user in Forgerock but then I get the following…
mm24
  • 9,280
  • 12
  • 75
  • 170
1
vote
2 answers

Send email in Gmail API - Objective C

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

Android AppAuth library signout redirection not working with Azure AD

Configuration App name: AppAuth Demo App Version: 'net.openid:appauth:0.11.1' Integration: Android native java Identity provider: Azure AD Description: I am working on integrating the Android App with the Microsoft Azure AD for user authentication…
Raj
  • 21
  • 6