openid / AppAuth-Android

Android client SDK for communicating with OAuth 2.0 and OpenID Connect providers.
https://openid.github.io/AppAuth-Android
Apache License 2.0
2.83k stars 883 forks source link

400 invalid_request #969

Closed JinYangZhou1225 closed 1 year ago

JinYangZhou1225 commented 1 year ago

Configuration

demo

Description

Return 400 invalid_request when I modify.Who can help me ,realy thanks

manifestPlaceholders = [ 'appAuthRedirectScheme': 'com.six.myapplication' ] <activity android:name="net.openid.appauth.RedirectUriReceiverActivity" android:exported="true">

    </activity>

{ "client_id": "xxxx.apps.googleusercontent.com", "redirect_uri": "https://com.six.myapplication", "end_session_redirect_uri": "https://com.six.myapplication", "authorization_scope": "openid email profile", "discovery_uri": "https://accounts.google.com/.well-known/openid-configuration",

"authorization_endpoint_uri": "", "token_endpoint_uri": "", "registration_endpoint_uri": "", "user_info_endpoint_uri": "", "https_required": true }

agologan commented 1 year ago

When using a custom redirect URI as shown in the examples the redirect_uri for a appAuthRedirectScheme: 'com.six.myapplication' would be something along the lines of: com.six.myapplication://oauth2redirect

If instead you want to use AppLinks and you own a specific domain please see our documentation on the topic.