Microsoft Single Signon on self-hosted Anvil app server?

Is it possible to use the Microsoft Single Signon service on a self-hosted, non-business Anvil app server? If not, has anyone done any home-rolled authentication / authorization system for Anvil + Python + MS Active Directory / Office 365 / Azure / etc.? Just a point in the right direction would be appreciated.

I could not afford nor justify the $299 USD/month Business plan in my wildest dreams :wink:

Cheers,
Ken

Yes, it is. If you look down the list of config options for the runtime, you’ll see there are a few there related to MS authentication: GitHub - anvil-works/anvil-runtime: The runtime engine for hosting Anvil web apps

Owen,

Thanks for pointing those out. However, I can’t add the Microsoft API under Services when I’m doing my design & coding since I don’t have a Business plan, and I’m assuming that needs to be done before cloning the app to my app server. Chicken and Egg problem :wink:

Cheers,
Ken

Found the answer. The Microsoft service just needs to be enabled in the anvil.yaml:

service
- source: /runtime/services/anvil/microsoft.yml
  client_config: {}
  server_config: {}

More info here:

Cheers,
Ken

1 Like