[ad_1]
I´m trying to run my AppAuth Android in my Gluu Server 4.3 installed on my Ubuntu 20, but my app shows a “Failed to retrieve discovery document: Network error.
The only changes i do are in the manifest and the json conf
The manifest changes:
<activity
android:name="net.openid.appauth.RedirectUriReceiverActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="https"
android:host="appopenid.org"
android:path="/oauth2redirect"/>
</intent-filter>
The config changes
{
"client_id": "c23cdb4c-6539-4045-90db-71171d594ffe",
"redirect_uri": "https://appopenid.org/oauth2redirect",
"end_session_redirect_uri": "https://appopenid.org/oauth2redirect",
"authorization_scope": "openid email profile",
"discovery_uri": "https://test7.gluu.org/.well-known/openid-configuration",
"authorization_endpoint_uri": "",
"token_endpoint_uri": "",
"registration_endpoint_uri": "",
"user_info_endpoint_uri": "",
"https_required": true
}
The error log
D/HostConnection: HostConnection::get() New Host Connection established 0xf326d3b0, tid 8608
D/goldfish-address-space: allocate: Ask for block of size 0x100
D/goldfish-address-space: allocate: ioctl allocate returned offset 0x3ebffe000 size 0x2000
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2
E/AppAuth: Network error when retrieving discovery document
I/LoginActivity: Failed to retrieve discovery document
W/System: A resource failed to call close.
I found that it could be cause my https redirect uri is not trusted but i don´t know how to solve it. Thank you so much
[ad_2]