This is a Camaleon CMS gem to support oauth integration for Camaleon CMS.
owen2345 / camaleon_oauth Goto Github PK
View Code? Open in Web Editor NEWThis is a plugin for Camaleon CMS that support oauth integration
License: MIT License
This is a plugin for Camaleon CMS that support oauth integration
License: MIT License
This:
https://github.com/owen2345/camaleon_oauth/blob/master/config/initializers/doorkeeper.rb#L1
makes methods like current_user
available in the global scope.
However, current_user
invokes cama_calc_api_current_user
which invokes doorkeeper_token
. doorkeeper_token
is not available in the global scope, hence current_user
fails.
Furthermore, cama_current_user
has a cache for the current user value - @cama_current_user
. This is an instance variable which again is not accessible from the global scope.
Instead of putting methods into the global scope, specific classes or modules should include CamaleonCms::SessionHelper
etc.
I installed this gem and ran rails db:migrate
, and I enabled the plugin in /admin/plugins. However, the /admin/register screen is the same as before (no oauth options). Additionally, the documentation link in /admin/plugins doesn't work. Are there additional steps to install?
Rails 5.1.4
Ruby 2.4.2
Camaleon git version
This repo does not have any release tags, would be good to have them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.