Skip to content

Commit

Permalink
Dx docs - link to ibm, example tai png
Browse files Browse the repository at this point in the history
  • Loading branch information
andylwelch committed Mar 13, 2024
1 parent 4dfeba2 commit fb2378d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
Binary file added docs/boards/dx/auth/oauth-tai.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 27 additions & 9 deletions docs/boards/dx/auth/websphere.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ Connect to the core server, e.g on Kubernetes:

kubectl exec -it hcl-dx-dev1-core-0 core -n hcl-dx-dev1 -- sh

## Setup Provider
## Create Service Provider

!!! note

These instructions are based on the [IBM documentation - Creating an OAuth service provider](https://www.ibm.com/docs/en/was/9.0.5?topic=services-creating-oauth-service-provider)

1. Create the OAuth provider by using the wsadmin utility

Expand All @@ -22,7 +26,7 @@ Connect to the core server, e.g on Kubernetes:

1. Enable Auto Authorize

Edit the OAuthConfig.xml file which was just created
Edit the OAuthConfig.xml file which was just created. For a full list of supported options see the [IBM documentation](https://www.ibm.com/docs/en/was/9.0.5?topic=services-defining-oauth-service-provider).

`vi /opt/HCL/wp_profile/config/cells/dockerCell/oauth20/OAuthConfig.xml`

Expand All @@ -39,14 +43,22 @@ Connect to the core server, e.g on Kubernetes:
./stopServer.sh WebSphere_Portal -profileName wp_profile -username wpsadmin -password wpsadmin
./startServer.sh WebSphere_Portal -profileName wp_profile

1. Check TAI Interceptor properties set
1. Check TAI Interceptor properties are set, if not please update as per below:

Global security > Trust association > Interceptors > com.ibm.ws.security.oauth20.tai.OAuthTAI
`Global security` > `Trust association` > `Interceptors` > `com.ibm.ws.security.oauth20.tai.OAuthTAI`

provider_1.name=OAuthConfig
provider_1.filter=Authorization%=Bearer

## Register OAuth Clients
For example:

![OAuth TAI Config](oauth-tai.png)

## Register OAuth Client

!!! note

These instructions are based on the [IBM documentation - Creating an OAuth service provider](https://www.ibm.com/docs/en/was/9.0.5?topic=services-creating-oauth-service-provider).

1. copy default client definitions

Expand All @@ -71,12 +83,16 @@ Connect to the core server, e.g on Kubernetes:
<client id="huddoboards" component="OAuthConfig" secret="a2e3d8c3-7875-4512-a0da-8b5fd61f2245" displayname="Huddo Boards" redirect="https://boards.huddo.com/auth/dx/ZHhkZXYxLmlzd2xhYi5uZXQ=/callback" enabled="true">
</client>

## Install the OAuth 2.0 service provider application
## Install OAuth Application

!!! note

cd /opt/HCL/AppServer/bin
./wsadmin.sh -f ./installOAuth2Service.py install dockerNode WebSphere_Portal -profileName wp_profile -username <username> -password <password>
These instructions are based on the [IBM documentation - Enabling your system to use the OAuth 2.0 feature](https://www.ibm.com/docs/en/was/9.0.5?topic=services-enabling-your-system-use-oauth-20-feature).

## Enable TAI
1. Install the OAuth 2.0 service provider application

cd /opt/HCL/AppServer/bin
./wsadmin.sh -f ./installOAuth2Service.py install dockerNode WebSphere_Portal -profileName wp_profile -username <username> -password <password>

1. Enable OAuth 2.0 TAI

Expand All @@ -92,6 +108,8 @@ Connect to the core server, e.g on Kubernetes:
./stopServer.sh WebSphere_Portal -profileName wp_profile -username <username> -password <password>
./startServer.sh WebSphere_Portal -profileName wp_profile

---

## Troubleshooting

**Issue**: SSL Error
Expand Down

0 comments on commit fb2378d

Please sign in to comment.