Hello,
I just created a project react-native:
npm install react-native-app-auth --save
react-native link react-native-app-auth
I added in the file "android / app / build.gradle":
manifestPlaceholders = [
appAuthRedirectScheme: 'io.identityserver.demo'
]
My configuration for keycloak:
const config = {
issuer: 'http: // keycloakserver: 9080 / auth / realms / test',
clientId: 'web_app',
redirectUrl: 'io.identityserver.demo: / callback'
scopes: ['openid', 'profile']
};
// Log in to get an authentication token
const authState = await authorize (config);
// Refresh token
const refreshedState = await refresh (config, {
refreshToken: authState.refreshToken,
});
When I run my application, it crashes the function call: "const authState = await authorize (config)"
Do you have an idea ?
Would I have forgotten something in the configuration?
I can not find log logs (if you know how to find them, I'm interested).
PS: I use the latest version of android studio and like AVD:

STEPS :
1 - this application this start correctly

2 - when click on the button "Authorize coucou", i call function "const authState = await authorize (config)" and this application crashes and i have this messages :

3- i click to "open app again" and re-click on the button "authorize coucou", and new message appear :

Thank you.
PS : for information, when I click on the button "authorize coucou": I am not redirected on the web page login / identification keycloak.
PS: Moreover, when I want to test with the example of the repository git => it does not work either.
In the config, when I add:
serviceConfiguration: {
authorizationEndpoint: 'http: // keycloakserver / auth / realms / r / protocol / openid-connect / auth? client_id = app-web & redirect_uri =
tokenEndpoint: 'http: // keycloakserver / auth / realms / r / protocol / openid-connect / token? client_id = app-web'
}
I access the authentication keycloak page, and when I connect I go back to the android app but it crashes.
Is it compatible with the latest version of keycloak (keycloak-4.3.0.Final/) ??
thank you
Regards,
Christophe
@titoff002 btw in GitHub you can add single backticks around inline code blocks like so and triple backticks (```) around multiline codeblocks
like so
Please use this for formatting your issue so it would be easier to read, thanks 馃槉
RE: your issue. It would be helpful if you could provide the actual error. To do this, either run your app through Android Strudio or run react-native log-android
Solution (for dev environnment) :
dangerouslyAllowInsecureHttpRequests: true
@titoff002 Thank you
hi bro ,i have some problem that you have any idea how to fix it?
Most helpful comment
Solution (for dev environnment) :
dangerouslyAllowInsecureHttpRequests: true