Coder Social home page Coder Social logo

prestashop / keycloak_connector_demo Goto Github PK

View Code? Open in Web Editor NEW
2.0 16.0 6.0 259 KB

Demo module of how to use Keycloak as OAuth2 Authentication Server for the new API

License: Academic Free License v3.0

PHP 90.66% Shell 3.62% Twig 5.71%
hacktoberfest

keycloak_connector_demo's Introduction

KeyCloack Connector Demo

About

This module allows you to use KeyCloak as an external authentication provider for the PrestaShop API. This module was only designed as a POC and should be used for development or as an example but is not destined to be used in production as is.

Keycloak server initialisation

A keycloak docker is available in this module, along with a realm containing default data like:

  • default client
  • default scopes

To start the docker container run this command from the root folder of this module:

docker-composer up
# OR if you want keycloak to keep running in background
docker-composer up -d

You will then have access to the server administration via http://localhost:8003 where you will find a realm named prestashop User: admin Password: admin

The prestashop realm includes a client already configured, you can get an access token via this endpoint http://localhost:8003/realms/prestashop/protocol/openid-connect/token with following credentials (use Form URL encoded request):

  • grant_type: client_credentials
  • client_id: prestashop-keycloak
  • client_secret: O2kKN0fprCK2HWP6PS6reVbZThWf5LFw

Reporting issues

You can report issues with this module in the main PrestaShop repository. Click here to report an issue.

Contributing

PrestaShop modules are open source extensions to the PrestaShop e-commerce platform. Everyone is welcome and even encouraged to contribute with their own improvements!

Just make sure to follow our contribution guidelines.

License

This module is released under the Academic Free License 3.0

keycloak_connector_demo's People

Contributors

0x346e3730 avatar atomiix avatar dependabot[bot] avatar jolelievre avatar mflasquin avatar nicosomb avatar progi1984 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.