🔑
cbSSO
  • Introduction
  • Quick Start
  • Usage
    • How It Works
    • Configuration
    • Initiating SSO
    • Handling The Identity Provider Response
    • Interception Points
    • Provider Service
  • Providers
    • Built-in Providers
      • FacebookProvider
      • GitHubProvider
      • GoogleProvider
      • MircosoftSAMLProvider
    • Custom Providers
  • cbAuth Integration
    • Enabling Integration
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
Export as PDF
  1. Providers
  2. Built-in Providers

FacebookProvider

PreviousBuilt-in ProvidersNextGitHubProvider

Last updated 10 months ago

Was this helpful?

To use Facebook as an identity provider you will need to configure the FacebookProvider . In order to fully configure it you will need to register for a Facebook developer account on their developer site.

component {
  public any function configure(){
    return {
      "providers" : [
        {
          // name is optional, can be used to control the redirect uri
          // with name:     https://your.app.com/cbsso/auth/fbook
          // without name:  https://your.app.com/cbsso/auth/Facebook
          name:         "fbook",
          type:         "FacebookProvider@cbsso",

          // these values are configured with Microsoft and available in your app dashboard
          clientId:     "YOUR-CLIENT-ID",
          clientSecret: "YOUR-CLIENT-SECRET",
          
          // optional - this is the default
          scope: "openid email"
        }
      ]
    };  
  }
}
Facebook for DevelopersFacebook for Developers
Logo