Rails Devise Omniauth AzureAD Template is a starter template for building Ruby on Rails applications that integrate with Azure Active Directory (AzureAD) using Devise and Omniauth. This template provides a basic setup to authenticate users via AzureAD and offers a starting point for developing applications that require AzureAD authentication.
- User authentication with AzureAD using Devise and Omniauth
- Integration with AzureAD's OAuth 2.0 authorization flow
- Preconfigured routes, controllers, and views for user registration, login, and logout
- Support for retrieving user information from AzureAD
- Bootstrap styling for a responsive user interface
To get started with the Rails Devise Omniauth AzureAD Template, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/rails-devise-omniauth-azureAD-template.git
-
Install the required gems:
bundle install
-
Set up the database:
rails db:setup
-
Configure AzureAD credentials:
- Open
config/initializers/devise.rb
and replaceYOUR_APP_ID
andYOUR_APP_SECRET
with your AzureAD application's client ID and client secret respectively. - Update the AzureAD tenant domain in
config/initializers/omniauth.rb
.
- Open
-
Start the Rails server:
rails server
-
Open your web browser and visit
http://localhost:3000
to see the application in action.
The Rails Devise Omniauth AzureAD Template provides a foundation for your application, but you may want to customize it further. Here are a few areas you might consider:
- Views: Customize the appearance and layout of the registration, login, and user profile views located in the
app/views/devise
andapp/views/users
directories. - Routes: Modify the routes defined in
config/routes.rb
to add new functionality or change existing routes. - Controllers: Extend or modify the existing controllers in
app/controllers
to add your custom logic. - Models: Expand the functionality of the User model located in
app/models/user.rb
to store additional user information or integrate with other models.
Contributions to the Rails Devise Omniauth AzureAD Template are welcome! If you encounter any issues or have suggestions for improvements, please submit an issue or pull request to the repository.
This template was inspired by the Devise and Omniauth gems and leverages AzureAD for user authentication. We extend our gratitude to the open-source community for their contributions to these projects.
Please note that this template is provided as-is and does not guarantee complete security or adherence to all AzureAD best practices. It's essential to review and update the template according to your specific requirements and security considerations.
Feel free to customize this README based on your specific project needs and add any additional sections or instructions you deem necessary.