Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEMO][api] add microsoft strategy to auth module #3221

Closed
wants to merge 12 commits into from

Conversation

freemvmt
Copy link
Contributor

@freemvmt freemvmt commented May 31, 2024

Letting folks sign into the editor with their Microsoft account is shaping up nicely - the code works on local!

To see this first replace the Microsoft client credentials in api.planx.uk/modules/auth/strategy/microsoft.ts (see Slack), then do pnpm run up in project root, pnpm start in editor, and click 'Login with Microsoft'.

A lot of the effort was actually trawling the Azure docs to understand how the application that you have to set up with them needs to be configured, and then trying to get the passportjs strategy to play nicely with that. This was especially true because the 'official' strategy I tried to implement turned out to be deprecated (without replacement!) by Microsoft. Steps for setting up the application as required are documented here.

Rather than syndicate it all here I'll just point anyone interested in more detail to my notes in Notion, including various hints re security hardenings observed etc.

Development continuing on #3453.

@freemvmt freemvmt force-pushed the api-add-microsoft-sso-strategy branch 3 times, most recently from 68860b1 to 8e29203 Compare June 20, 2024 18:31
@freemvmt freemvmt force-pushed the api-add-microsoft-sso-strategy branch 4 times, most recently from 0ad864f to 36a3921 Compare July 18, 2024 12:39
Copy link

github-actions bot commented Jul 18, 2024

Pizza

Deployed 2ad0aba to https://3221.planx.pizza.

Useful links:

@freemvmt freemvmt force-pushed the api-add-microsoft-sso-strategy branch 2 times, most recently from ff25274 to 13f22ed Compare July 18, 2024 17:34
@freemvmt freemvmt changed the title [WIP][api] add microsoft strategy to auth module [DEMO][api] add microsoft strategy to auth module Jul 25, 2024
@DafyddLlyr DafyddLlyr added the demo Demo environment being used by an external team label Jul 30, 2024
@DafyddLlyr DafyddLlyr force-pushed the api-add-microsoft-sso-strategy branch from d2b8ca8 to b654e05 Compare July 30, 2024 15:58
@freemvmt
Copy link
Contributor Author

Closing this demo pizza now that the real deal is on prod! 🚢

See #3453

@freemvmt freemvmt closed this Sep 12, 2024
@freemvmt freemvmt deleted the api-add-microsoft-sso-strategy branch September 12, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demo Demo environment being used by an external team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants