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

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