-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add keycloak as oauth2 provider #9168
base: main
Are you sure you want to change the base?
Conversation
Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
|
@@ -0,0 +1,98 @@ | |||
package org.apache.cloudstack.oauth2.keycloak; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amend07 can you please add license?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package org.apache.cloudstack.oauth2.keycloak; | |
// Licensed to the Apache Software Foundation (ASF) under one | |
// or more contributor license agreements. See the NOTICE file | |
// distributed with this work for additional information | |
// regarding copyright ownership. The ASF licenses this file | |
// to you under the Apache License, Version 2.0 (the | |
// "License"); you may not use this file except in compliance | |
// with the License. You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, | |
// software distributed under the License is distributed on an | |
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
// KIND, either express or implied. See the License for the | |
// specific language governing permissions and limitations | |
// under the License. | |
package org.apache.cloudstack.oauth2.keycloak; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great to see the changes for the integration of keycloak @amend07, thank you.
I'll test this once. Do you have plans to extend this support in UI also ?
@harikrishna-patnala I am waiting for your response. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9168 +/- ##
============================================
- Coverage 15.32% 4.19% -11.14%
============================================
Files 5459 369 -5090
Lines 477298 30277 -447021
Branches 60202 5357 -54845
============================================
- Hits 73135 1269 -71866
+ Misses 396084 28864 -367220
+ Partials 8079 144 -7935
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Do you have plans to extend this support in UI also ? |
of course I will. why don't we add as an option with google and github dropdown list. |
@amend07 there are build failures, can you please check and update the PR |
yes we can do that |
…udstack into keycloak-integration
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
@harikrishna-patnala check it out now. |
@harikrishna-patnala I'm waiting your response |
@amend07 there are merge conflicts in the PR. Can you please resolve them? |
@amend07 there are merge conflicts in the PR. Can you please resolve them and also address any outstanding comments? |
OAuth2 Keycloak Integration for Apache CloudStack
This project provides an integration between Keycloak, an open-source Identity and Access Management solution, and Apache CloudStack, a popular open-source cloud computing software.
Features
OAuth2 Authentication: Seamlessly authenticate CloudStack users via Keycloak.
Single Sign-On (SSO): Leverage Keycloak's SSO capabilities for a unified login experience across multiple services.
User Management: Centralize user management with Keycloak, simplifying administration and enhancing security.
Customizable Configuration: Easily configure Keycloak settings within CloudStack to fit your specific environment and needs.
Prerequisites
Configure Keycloak:
Set up a new client in Keycloak for CloudStack.
Configure roles, users, and mappings as required.
Configure CloudStack:
Update the CloudStack configuration to use Keycloak for authentication.
Restart CloudStack management server if necessary.
Contributing
We welcome contributions to enhance this integration. Please fork the repository, create a feature branch, and submit a pull request.