Hello @大坂 翔 ,
Thanks for reaching out.
May I know reason why you wanted to get access_token from ADFS to access Graph API? are you trying to use on-premises account to authenticate and get access to graph API?
Because, you can't get access_token with SAML authentication as per OASIS standard from ADFS directly. Alternatively, when you have federation in place between Azure AD and with ADFS which is known as hybrid identity federation scenarios (for an example, Azure AD and ADFS used to authenticate on-premises accounts) in this case when on-premises user account try accessing protected resources like Graph API then flow would be:
- On-premises user redirected to ADFS for authentication to get SAML token since federation in place with Azure AD.
- Upon Azure AD received success SAML token for federated users from ADFS, then Azure AD issue new set of JWT token ( Access_token) for federated user to access Graph API resource.
To know more about What is federation with Azure AD , refer.
The recommended and best way is to get access_token directly from Azure AD is to use any of these methods like Get access on behalf of a user , Get access without a user etc..,
------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.