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.87k stars 887 forks source link

What is authorization end point an token end point in the case of FHIR services From Epic #1036

Closed Gunjan6734 closed 9 months ago

Gunjan6734 commented 10 months ago

AuthorizationServiceConfiguration serviceConfig = new AuthorizationServiceConfiguration( Uri.parse("https://idp.example.com/auth"), // authorization endpoint Uri.parse("https://idp.example.com/token"));

KarlBusse commented 10 months ago

I just did some googling and documentation reading for fun in response to your question, so take this with a grain of salt as no actual personal experience is behind it. :)

Authorize… https://fhir.epic.com/interconnect-fhir-oauth/oauth2/authorize

Token… https://fhir.epic.com/interconnect-fhir-oauth/oauth2/token

Complete documentation is here… https://fhir.epic.com/Documentation?docId=oauth2&section=standaloneOauth2Launch

Gunjan6734 commented 10 months ago

I just did some googling and documentation reading for fun in response to your question, so take this with a grain of salt as no actual personal experience is behind it. :)

Authorize… https://fhir.epic.com/interconnect-fhir-oauth/oauth2/authorize

Token… https://fhir.epic.com/interconnect-fhir-oauth/oauth2/token

Complete documentation is here… https://fhir.epic.com/Documentation?docId=oauth2&section=standaloneOauth2Launch

Hi Thanks for the reply But Whenever I am putting these 2 and trying to get the request Then I am getting this response -> Invalid request .
image Can you Please help me for this I really need help on this Topic

KarlBusse commented 10 months ago

Double check all of your parameters in the documentation I linked, such as client id, scope, redirect uri.

For example, confirm that your app’s redirect uri has been “registered with the EHR's authorization server by adding it to your app listing”, and that you’ve configured that uri in your app’s manifest

Gunjan6734 commented 10 months ago

Double check all of your parameters in the documentation I linked, such as client id, scope, redirect uri.

For example, confirm that your app’s redirect uri has been “registered with the EHR's authorization server by adding it to your app listing”, and that you’ve configured that uri in your app’s manifest

I have checked these things and everything seems to be Okay but Still no Results. Sometimes I am able to Login Successfully But it takes me to the Home Page image

agologan commented 9 months ago

Very happy to see another community member try to help you out :clap: Unfortunately we don't deal with individual integrations here unless it points to a library problem. You should engage with the identity provider support staff to help you with the particularities of their implementation.

Closing this thread but leaving it unlocked in case you have a library-relevant followup.