Skip to content

update a cors configuration in your AM tenant with github actions

Notifications You must be signed in to change notification settings

ryanbas21/update-cors-am-github-action

Repository files navigation

Update Your AM Instance with urls in a github action

Description

This is an action which adds accepted origins to a ForgeRock AM tenant via the rest api. It's helpful in scenarios where you may generate a url based on some dynamic values (like preview environments) and want to add that value to your tenants accepted origins for cors purposes. Cors requires exact matches when credentials are set.

How to use

In order to make the request we need an admin user who can log into the tenant and edit the cors configuration settings. We strongly encourage you to pass all values in as secrets to the action.

Please view the action action.yml file for the api and required paramters

  - uses: ryanbas21/update-cors-am-github-action@beta
    with:
      AM_URL: ${{ secrets.AM_URL }}
      USERNAME: ${{ secrets.AM_USERNAME }}
      PASSWORD: ${{ secrets.AM_PASSWORD }}
      REALM_PATH: ${{ secrets.AM_REALM }}
      ORIGINS: steps.output.myUrls # output from a previous step
      COOKIE_NAME: ${{ secrets.AM_COOKIE_NAME }} # cookie name from AM
      REDIRECTION_URIS: ${{ secrets.REDIRECTION_URIS }} # JSON input
      REMOVE: false # optional

About

update a cors configuration in your AM tenant with github actions

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages