Skip to content

Conversation

@zwwwenwei
Copy link

implement the feature in authenticationcontroller class and users_controller class

With a nested class called Authentication, I've made a new module called LoginLibrary. The SSO login as well as the standard login logic are both contained in the Authentication class.

Your AuthenticationController can use the library's methods rather than implementing the login logic yourself once the login system has been moved to the library.
Installed and present in your project's Gemfile is the login_library gem. Depending on how your login library is implemented, modify the code as necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant