Giter Site home page Giter Site logo

kirinse / keycloak-apple-social-identity-provider Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benjaminfavre/keycloak-apple-social-identity-provider

0.0 1.0 0.0 17 KB

Apple Social Identity Provider for Keycloak

License: Apache License 2.0

Java 90.01% HTML 9.99%

keycloak-apple-social-identity-provider's Introduction

Apple Social Identity Provider for Keycloak

An extension to Keycloak that provides support for Sign in with Apple.

Sign in with Apple follows the OIDC standard but uses some unusual parts of the protocol which are not implemented yet in Keycloak. Those specificities are:

  • Apple sends the Authentication Response as a POST request if scopes were requested;
  • User data (email, first name and last name) is received in the body of the authentication response—there is no Userinfo endpoint;
  • User data is provided only the first time the user authorizes the client on his Apple account;
  • The Token Request must be authentified by a JWT token signed by a specific private key.

The present extension addresses all these requirements.

Installation

  1. Download the latest release of the provider JAR file here.
  2. Install the provider JAR file following Keycloak instructions there.

Configuration

In Keycloak admin console:

  1. Add an identity provider and select Apple.

  2. Fill Client secret with the base 64 content of your private key file (trim delimiters and new lines).

    e.g., if your private key is:

    -----BEGIN PRIVATE KEY-----
    Rp6vMlHPYTHnyucsPvFk8gTzdYtTueMbmVznAtkUKhD9HPcI3bLKDrr0b2mNJLfS
    tsyvhbpyMUIpaffKQcY7IUuM20ecYBjiyjkLuX5eDQUInWUINfCCyXQnNdSU4K1j
    2z4IJrvacQz1PFrL0Tj4lt72jSxikzMBHWsGdFyT90bx0R26GR4YCudKxltozVrK
    PsUC1cdy
    -----END PRIVATE KEY-----
    

    then you should set Client secret with:

    Rp6vMlHPYTHnyucsPvFk8gTzdYtTueMbmVznAtkUKhD9HPcI3bLKDrr0b2mNJLfStsyvhbpyMUIpaffKQcY7IUuM20ecYBjiyjkLuX5eDQUInWUINfCCyXQnNdSU4K1j2z4IJrvacQz1PFrL0Tj4lt72jSxikzMBHWsGdFyT90bx0R26GR4YCudKxltozVrKPsUC1cdy
    
  3. Fill Team ID and Key ID with corresponding values found in Apple Developer console.

  4. Set Default Scopes to 'openid%20name%20email' to retrieve email, firstname and lastname from apple.

keycloak-apple-social-identity-provider's People

Contributors

benjaminfavre avatar tynamix avatar

Watchers

 avatar

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.