Giter Club home page Giter Club logo

bennu-social's Introduction

Available Integrations

Github

requested scopes as parameter on auth url redirect authorized scopes returned in accessToken answer (may be a subset of requested scopes)

list of valid scopes

Note: see Normalized Scopes

Linkedin

requested scopes configured in Linkedin. Example link (will not work if you have no developer permission for this app). requested scopes may be overriden on auth url redirect

Facebook

requested scopes as parameter on auth url redirect

authorized scopes with Inspect access tokens endpoint

Note: see Facebook reference for more details over scopes

Twitter

requested scopes configured in Twitter. Example link (will not work if you have no developer permission for this app).

Flickr

request scopes as parameter on auth url redirect

list of valid scopes

Dropbox

permissions defined in creation

Bitbucket

requested scopes configured in Bitbucket.

Google

How to add another integration

  • Create domain entities
    • socialAPI (extends api.SocialAPI)
    • socialUser (extends user.SocialUser)
  • Create domain relationships
    • org.fenixedu.bennu.core.domain.User - socialUser
    • org.fenixedu.bennu.core.domain.Bennu - socialAPI
    • socialAPI - socialUser
  • Set Bennu on socialAPI constructor
  • Implement singleton pattern on socialAPI
    • private constructor
    • static getInstance()
    • [Atomic TxMode.WRITE] private initialize()
  • Implement abstract methods on socialAPI
    • revokeAllAccesses()
    • revokePermission(User)
    • getAuthenticatedUser(User)
    • getAuthenticationUrlForUser(User)
    • getCallbackURL()
  • Implement methods on socialUser
    • constructor with User
    • delete()
  • Create GoogleService
  • Add googleService to SocialAdminController
  • Add socialAPI to SocialAdminController
    • admin
    • adminSave
  • Add socialAPI to admin interface (admin.jsp)
    • with socialAPI
    • resources for socialAPI name
    • modal for socialAPI config
  • Add socialAPI to SocialUserController
  • Add socialAPI to user interface (user.jsp)
    • with socialAPI
    • modal for socialAPI revoke
  • Add socialAPI to SocialCallbackController
  • Add socialAPI scopes anotation
    • RequiresSocialAPI
    • SocialInitializer.onStartup()
    • socialAPI.ensureConsistentScope()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.