-
Notifications
You must be signed in to change notification settings - Fork 80
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
[WFLY-17649] Add a detailed quickstart for bearer authentication use cases #546
Open
gaol
wants to merge
1
commit into
wildfly:main
Choose a base branch
from
gaol:WFLY-17649
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+83
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
83 changes: 83 additions & 0 deletions
83
quickstarts/WFLY-17649_EJB_Bearer_Token_Authentication_Quickstarts.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
--- | ||
categories: | ||
- quickstarts | ||
- bearer | ||
--- | ||
= A quickstart to demonstrate securing EJB with SASL OAUTHBEARER | ||
:author: Lin Gao | ||
:email: [email protected] | ||
:toc: left | ||
:icons: font | ||
:idprefix: | ||
:idseparator: - | ||
|
||
== Overview | ||
|
||
This quickstart tries to demonstrate how to configure authentication and authorization to secure the remote EJB invocations with bearer tokens. | ||
|
||
The https://www.keycloak.org/[Keycloak] will be used as the Identity Provider(IDP) during the demonstration with predefined identities information. | ||
|
||
|
||
== Issue Metadata | ||
|
||
=== Issue | ||
|
||
* https://issues.jboss.org/browse/WFLY-17649[WFLY-17649] | ||
|
||
=== Related Issues | ||
|
||
|
||
|
||
=== Dev Contacts | ||
|
||
* mailto:{email}[{author}] | ||
|
||
=== QE Contacts | ||
|
||
|
||
=== Testing By | ||
// Put an x in the relevant field to indicate if testing will be done by Engineering or QE. | ||
// Discuss with QE during the Kickoff state to decide this | ||
[X] Engineering | ||
|
||
[ ] QE | ||
|
||
=== Affected Projects or Components | ||
|
||
* WildFly Quickstarts | ||
|
||
=== Other Interested Projects | ||
|
||
* NONE | ||
|
||
== Requirements | ||
|
||
=== Hard Requirements | ||
|
||
* Shows how to access a remote secured EJB from a remote Java client application. | ||
* It uses `OAUTHBEARER` SASL mechanism to secure the EJB. | ||
* This quickstart needs an external Identity Provider(IDP) to work, Keycloak with a predefined realm running in Docker is used for the authentication and authorization. | ||
* Shows how to configure the application server to secure the EJB. | ||
* Shows how to configure the remote Java client application to negotiate with an external bearer token issuer. | ||
* Shows the result of calling remote EJB which checks current identity information. | ||
* Shows how to configure the application server to propagate the authentication and authorization to another server. | ||
* Shows the result of calling remote EJB which checks current identity information and the identity information used to call another EJB in different server. | ||
* It should demonstrate the invocations with at least 2 identities. | ||
* It will be a multi modules Maven project. | ||
|
||
=== Nice-to-Have Requirements | ||
|
||
* It will be nice if this quickstart can use a Helm Charts to be built and deployed on OpenShift. The configuration for the Helm Chart should be provided inside the quickstart directory if any. | ||
|
||
=== Non-Requirements | ||
|
||
* NONE | ||
|
||
== Test Plan | ||
|
||
* There should be runtime testings to make sure the quickstart works in the corresponding version of the server. | ||
* The associated GitHub Action should be setup for this quickstart. | ||
|
||
== Community Documentation | ||
|
||
Community documentation will be provided by the README in the quickstart directory. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Would be good to mention whether or not the quickstart will be able to run on OpenShift.
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.
I added the running on OpenShift to a nice to have requirement, I will try to figure out the Helm Charts for this quickstart.