Code Monkey home page Code Monkey logo

aem-communities-oauth-sample's Introduction

AEM Communities Sample OAuth Provider

This sample code demonstrates a basic implementation of a Provider to enable one to implement a custom OAuth Provider for AEM Communities.

Building

This project uses Maven for building.

First, be sure that your Maven settings.xml file contains the Adobe Public Maven Repository profile (see: repo.adobe.com)

Common build commands:

From the root directory, run mvn -PautoInstallPackage clean install to build the bundle and content package and install to a CQ instance.

From the bundle directory, run mvn -PautoInstallBundle clean install to build just the bundle and install to a CQ instance.

Specifying CRX Host/Port

The CRX host and port can be specified on the command line with: mvn -Dcrx.host=otherhost -Dcrx.port=5502

aem-communities-oauth-sample's People

Contributors

jay-brown avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aem-communities-oauth-sample's Issues

Trouble getting more Basic Profile Fields

Hello.

Thanks for this example OAuth Linkedin provider! My colleague and I have it working for our AEM application under development. Our app needs to get all the basic profile fields, and perhaps most critically the associated email
https://developer.linkedin.com/docs/fields/basic-profile

So far the only fields getting populated are from your example (headline, firstName, lastName, and siteStandardProfileRequest). I have tried add summary and email using the code below. But it's not working. The 'Granite Oauth Application and Provider' is configured with our LinkedIn app and has scope value of "[r_emailaddress, r_basicprofile]"

Any suggestions would be very much appreciated!

@Property(unbounded = PropertyUnbounded.ARRAY, value = {"givenName=first-name", "familyName=lastName", "jobTitle=headline", "email=emailAddress", "summary=summary"}, label = "Field Mappings", description = "profile-field=provider-field")

Update: This example appears to be using OAuth1.0, so there is an incompatibility with the current LinkedIn docs which require OAuth2.0
https://developer.linkedin.com/docs/guide/v2/people/profile-api

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.