-
Notifications
You must be signed in to change notification settings - Fork 278
Description
i have a problem making a login inside a gorouter
the login is succesful, but it always redirect to gorouter and send this callback data
Received Keycloak callback URI: com.company.ridms://callback/?state=ugMVsKXHDBKYUX6BukeZ0Q&session_state=b102af9a-d102-4f8b-9c51-3af2df1722d9&iss=https%3A%2F%2Fauth.api.company.com%2Frealms%2FRIDMS&code=cf23524c-1f25-4e46-98a7-df72b5cc6e84.b102af9a-d102-4f8b-9c51-3af2df1722d9.88be5da0-dd23-4ea0-8854-721c0028ad5c
and then the try catch method return AppAuth Error Log : PlatformException(null_intent, Failed to authorize: Null intent received, , null)
and this is my code
try{ final AuthorizationTokenResponse result = await appAuth.authorizeAndExchangeCode( AuthorizationTokenRequest( clientID!, k_redirect, discoveryUrl: appauth_discovery, clientSecret: secret, scopes: scopesList, ), ); if (result != null) { if (kDebugMode) { print("appauth result ${result.accessToken}"); } } }catch(e){ if (kDebugMode) { print("AppAuth Error Log : $e"); } return false; }
is there some step that i miss? any help would be appreciated thx