question

EnesOZDEMIRADEO-8037 avatar image
0 Votes"
EnesOZDEMIRADEO-8037 asked MohammedMehtabSiddiqueMINDTREELIMI-9821 commented

Microsoft Graph authorization_pending error

Hi everybody, I am trying to set up an integration that uses Graph API through device code flow. I am totally new to this so here is what I have done. I requested admin consent for the application after logging in on microsoft. Our admin approved the request so I got an email saying that Admin consent granted. When I go back to the integration I am getting authorization_pending error. After a while token expires and I have to start all over again (including requesting approval).


205809-clipped2022-05-26-13-01.png


205852-clipped2022-05-26-13-02.png


205795-clipped2022-05-26-13-03.png



I checked the microsoft documentation and it says
authorization_pending The user hasn't finished authenticating, but hasn't canceled the flow. Repeat the request after at least interval seconds.

I don't understand do I need to keep requesting admin consent? what am I supposed to do?

microsoft-graph-connectors
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MohammedMehtabSiddiqueMINDTREELIMI-9821 avatar image
0 Votes"
MohammedMehtabSiddiqueMINDTREELIMI-9821 answered

Hi @EnesOZDEMIRADEO-8037 ,

I think there is a time limit of 15 min for sign in before it expires, as mentioned in the Document

206197-image.png



image.png (29.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EnesOZDEMIRADEO-8037 avatar image
0 Votes"
EnesOZDEMIRADEO-8037 answered MohammedMehtabSiddiqueMINDTREELIMI-9821 commented

But I am already logged in. So does it mean I have to log out and sign in only when requesting approval?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yes I think according to the document, as its mentioned "only make this request when the user has indicated they're ready to sign in" it only works when the user is ready for sign-in.



If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

0 Votes 0 ·