CMS Development

ABainbridge
Member

cms-react with msal

SOLVE

Hi,

 

new to hubspot and hubspot development. 

I'm planning on building modules that communicate with an az function app to use an external backend/db.

 

Having some trouble with setting up the msal package within my module.

Also new to SSR, I've rendered my island as clientonly, but still having issues with getting this going.

 

Has any one had any success in this area?

 

 

0 Upvotes
1 Accepted solution
ABainbridge
Solution
Member

cms-react with msal

SOLVE

Thanks for the advice on reaching out to microsoft forums too, that makes a lot of sense.

 

I did manage to get it going. Once I wrapped my head around server side rendering as well as Islands it wasn't too bad. Finding the documentation on the cms local server and specifying `--ssl` was a huge help in reducing my cycle time.

 

For reference I implemented it directly into an island that I specified as client only. I didn't use the usual msal context provider. There were some additional steps that I'd not seen before, such as running initialize, which I've never used before with msal

```javascript

const instance = new PublicClientApplication(msalConfig);
instance.initialize().then

```

View solution in original post

2 Replies 2
ABainbridge
Solution
Member

cms-react with msal

SOLVE

Thanks for the advice on reaching out to microsoft forums too, that makes a lot of sense.

 

I did manage to get it going. Once I wrapped my head around server side rendering as well as Islands it wasn't too bad. Finding the documentation on the cms local server and specifying `--ssl` was a huge help in reducing my cycle time.

 

For reference I implemented it directly into an island that I specified as client only. I didn't use the usual msal context provider. There were some additional steps that I'd not seen before, such as running initialize, which I've never used before with msal

```javascript

const instance = new PublicClientApplication(msalConfig);
instance.initialize().then

```

kennedyp
Community Manager
Community Manager

cms-react with msal

SOLVE

If you haven't done so yet, I recommend posting a similar question on Microsoft's forums or support channels.

 

I'd like to involve some of our community experts who might have relevant experience. Hey @johnelmer, @ChrisoKlepke, @Mike_Eastwood , do you have any tips or resources you could share? Thank you! 

 

Best, 
Kennedy


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes