Git Product home page Git Product logo

any_login's Introduction

any_login's People

Contributors

bbenezech avatar daichirata avatar dependabot[bot] avatar eliotsykes avatar igorkasyanchuk avatar incubus avatar jr180180 avatar kyohah avatar linshaodongsam avatar loqimean avatar manastyretskyi avatar rbclark avatar saiqulhaq avatar sgerrand avatar shivabhusal avatar sviatoslav-krupa avatar vmyts539 avatar zorab47 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

any_login's Issues

Manifest.js warning when starting Rails server

We are running Rails 6.1 with Webpacker. When updating to the latest version 1.5.1 we get an error starting the rails server. Version 1.4.4 where we are upgrading from doesn't have the issue. When adding the file manifest.js it is starting fine but then we get unexpected error when loading pages. Seems like there is a depency for the file to be there.

Error in the console

Expected to find a manifest file in `app/assets/config/manifest.js` (Sprockets::Railtie::ManifestNeededError)
But did not, please create this file and use it to link any assets that need
to be rendered by your app:

Example:
  //= link_tree ../images
  //= link_directory ../javascripts .js
  //= link_directory ../stylesheets .css
and restart your server

For more information see: https://github.com/rails/sprockets/blob/070fc01947c111d35bb4c836e9bb71962a8e0595/UPGRADING.md#manifestjs

Support for apps running a more restrictive Content Security Policy

I am only running this application in development (and not in prod), however it would be very useful it were structured in a manner where the application could still run locally without having to modify the content security policy for development. Currently this gem requires the enabling of unsafe inline for script source and style source.

There are likely two ways to fix this:

  1. Move the css and javascript into their own dedicated files.
  2. Add the ability to use nonces with the javascript and css.

I'd like to take a stab at moving the css and javascript into their own dedicated files in order to solve this problem. Do you have any thoughts/objections?

Does it work with Angular ?

The question is a little naive. But does it work with A back-end APIs and a web client like angular app in another port ?

MongoDB integration

I have new project with devise on MongoDB (mongoid). Code <%= any_login_here %> rises an error that it doesn't exists

Ability to manage two classes

Hi, what if I have two different classes, like User and Admin, so I cannot merge them together due an error that appears, when I'm trying to login for example by Admin user (in options I have setted default value for class - User). So, would be nice to have this ability!

Custom Login Providers

Before adding this, I want to get feedback on the idea. The concept is to allow custom providers that can integrate with other authentication libraries.

Currently, I can assign a custom provider class to the the AnyLogin configuration (see below). But it throws a message (that becomes an exception). Where could I catch the message? Is there an alternate implementation that would check for the existence of the constant then decide if the throw is necessary?

AnyLogin.setup do |config|
  config.provider = MyCustomProvider
end

throw 'Please use this gem with any of the following gems: Devise, Authlogic or Clearance'

Rails 5 support

Not an issue but more of a query. Has anyone tried this with Rails 5, any issues found?

Routing error

first of all i need to generate initializer to see dropdown element. Before that i got all time "not method any_login_here"

When i can see dropdown in my root page and try change user with ID i got a routing error.

"any_login/any_login/sign_in"

I dont know why repeat two times any_login. Could be something in my app.

Thanks!

Multiple models

More of a feature request than an issue, would be great if it worked with multiple models (with Devise in my case).

Limit any_login to specific user

Hi there,

I want to limit any_login access to a specific user. I used the following code and it works:

  config.verify_access_proc = proc do |controller|
    controller.current_user&.email == "[email protected]"
  end

Unfortunately, when I change my user thanks to any login, as I am logged in as another user, I cannot come back anymore. In the view I could do something like current_user&.email == "[email protected]" || any_login_previous_ids.present? but not in the initializer.

Do you have any tips to be able to use any_login based on the "initial user" ?

Thanks so much,
Damien

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.