PHP 8.3+
A long-lived project that still receives updates
OAuth support for DreamFactory Platform 2.0
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

mockery/mockery
^1.6
phpunit/phpunit
^11.5.3

Runtime

socialiteproviders/microsoft-live
^4.1
socialiteproviders/twitter
^4.1
 Project Readme

df-oauth

DreamFactory OAuth support.

Overview

DreamFactory is a secure, self-hosted enterprise data access platform that provides governed API access to any data source, connecting enterprise applications and on-prem LLMs with role-based access and identity passthrough.

Configure DreamFactory OAuth Connector

  1. Log in to the DreamFactory admin interface.
  2. Navigate to Security > Authentication > Add Service.
  3. Choose the desired provider from the Service Type dropdown.
  4. Enter the required details:
    • Namespace: Must end with _oauth (e.g., github_oauth).
    • Label: Example: GitHub Sign In. This label will be displayed on DreamFactory's login page as the text on the provider's sign-in button.
    • Client ID: Obtained from the provider's application settings.
    • Client Secret: Obtained from the provider's application settings.
    • Redirect URL: This must match the provider's application settings and the DreamFactory configuration. It should point to the /sso endpoint.
      • Example: If your namespace is github_oauth, the redirect URL should be:
        https://your-dreamfactory-instance.com/api/v2/github_oauth/sso
        
  5. Save the configuration.
  6. Log out, reload the page, and the new OAuth login option for the configured provider should be visible.