How could I get the access token for Sharepoint to pass it to the WebPart?

%3CLINGO-SUB%20id%3D%22lingo-sub-1133183%22%20slang%3D%22es-ES%22%3EHow%20could%20I%20get%20the%20access%20token%20for%20Sharepoint%20to%20pass%20it%20to%20the%20WebPart%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1133183%22%20slang%3D%22es-ES%22%3E%3CP%3EI%20have%20a%20website%20where%20the%20users%20login%20against%20Azure%20AD.%20I%20need%20to%20embed%20(as%20iframe)%20this%20website%20inside%20a%20Sharepoint%20intranet%20with%20a%20WebPart.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20could%20I%20get%20the%20access%20token%20for%20Sharepoint%20to%20pass%20it%20to%20the%20WebPart%3F.%3C%2FP%3E%3CP%3EIn%20the%20webpart%20I%20have%3CBR%20%2F%3Esomething%3CBR%20%2F%3Elike%20this%3A%20'''%20OAUTHOKEN%20%3F%20%3CBR%20%2F%3E%3CBR%20%2F%3E''Could%20you%20tell%20me%20the%20way%20to%20obtain%20the%20access%20%3CIFRAME%20src%3D%22%26quot%3B%26lt%3BA%22%20href%3D%22https%3A%2F%2Fmyweb.org%2FoauthCallback.html%3Ftoken%3DOAUTHTOKEN%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%26amp%3Bamp%3Bamp%3Blt%3Ba%20href%3D%22https%3A%2F%2Fmyweb.org%2FoauthCallback.html%3Ftoken%3DOAUTHTOKEN%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FA%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bquot%22%20target%3D%22_blank%22%26amp%3Bamp%3Bamp%3Bgt%3Bhttps%3A%2F%2Fmyweb.org%2FoauthCallback.html%3Ftoken%3DOAUTHTOKEN%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FA%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bquot%26amp%3Bamp%3Bamp%3Blt%3B%2Fa%26amp%3Bamp%3Bamp%3Bgt%3B%3B%20width%3D%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bquot%3B250px%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bquot%3B%20height%3D%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bquot%3B250px%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bquot%3B%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3Btoken%3F%20%3C%2FIFRAME%3E%20%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

I have a website where the users login against Azure AD. I need to embed (as iframe) this website inside a Sharepoint intranet with a WebPart.

 

How could I get the access token for Sharepoint to pass it to the WebPart?.

In the webpart I have something like this:
```
OAUTHOKEN = ¿?
<iframe src="https://myweb.org/oauthCallback.html?token=OAUTHTOKEN" width="250px" height="250px"/>
```
Could you tell me the way to obtain the access token?

 

Regards!

0 Replies