-
Notifications
You must be signed in to change notification settings - Fork 14
Admin UI Installation on bank server
duttarnab edited this page Jan 26, 2022
·
3 revisions
https://raw.githubusercontent.com/duttarnab/test/master/ldiff/jansAdminUIRole.ldiff
- api-view
- api-admin
- api-manager
- api-editor
https://raw.githubusercontent.com/duttarnab/test/master/ldiff/api-admin.ldiff https://raw.githubusercontent.com/duttarnab/test/master/ldiff/api-editor.ldiff https://raw.githubusercontent.com/duttarnab/test/master/ldiff/api-manager.ldiff
- default scopes profile, openid and
- jansSignedRespAlg = RS256
- jansAccessTknAsjwt = true
https://raw.githubusercontent.com/duttarnab/test/master/ldiff/auth-client.ldiff
- Access_token_as_jwt: true
- run_introspection_script_beforeaccess_token_as_jwt_creation_and_include_claims : true
- access_token_signing_alg as RS256
- Configure introspection script #1 to run
- Client Credentials for Config CLI
- jansSignedRespAlg = RS256
- jansAccessTknAsjwt = true https://raw.githubusercontent.com/duttarnab/test/master/ldiff/token-client.ldiff
(ADMIN-UI via config-api request and validate access token against bank-op.gluu.org but configures bank.gluu.org.)
Refer https://github.com/JanssenProject/jans-config-api/wiki/Admin-ui-plugin-deployment-on-server to add admin-ui plugin
to jans-config-api
.
- Edit gluu/jans apache configuration file available at path
/etc/apache2/sites-available/
(eg: /etc/apache2/sites-available/https_jans.conf) to add the following:
Alias /admin "<path_of_admin_ui_built_path_deployed_on_apache>"
<Directory "<path_of_admin_ui_built_path_deployed_on_apache>"
Options FollowSymLinks Indexes
DirectoryIndex index.html
AllowOverride None
Order allow,deny
Allow from all
</Directory>
- Create path_of_admin_ui_built_path_deployed_on_apache (eg:
/var/www/html/admin/frontend
) .
- Clone Janssen Admin UI Frontend using the below command.
git clone https://github.com/GluuFederation/gluu-admin-ui
- Change the directory to the cloned project and edit
.env
file.
.env
BASE_PATH=/admin
CONFIG_API_BASE_URL=https://admin-ui-test.gluu.org
API_BASE_URL=https://admin-ui-test.gluu.org/jans-config-api/admin-ui
NPM_TOKEN=
SESSION_TIMEOUT_IN_MINUTES=30
Here,
-
BASE_PATH
- If its value is/admin
thenadmin-ui
url will be https:///admin -
API_BASE_URL
-admin-ui
plugin url
- Run the following commands
npm install @openapitools/openapi-generator-cli -g
npm run api
npm install
- For creating production built run
npm run built:prod
. (For creating built for bank.gluu.org runnpm run build:bank
). This will createadmin-ui
built in thedist
folder of the cloned project.
- Copy the built from
dist
folder to<path_of_admin_ui_built_path_deployed_on_apache>
(eg: /var/www/html/admin/frontend) - change ownership of folder <path_of_admin_ui_built_path_deployed_on_apache> to
www-data
(eg: chown -r root:www-data /var/www/html/admin/frontend) - Restart apache2.
- The ui is available at https://{hostname}/admin
- In cloned
admin-ui
project directory add the plugin toplugins
directory. - In
plugins.config.js
file of clonedadmin-ui
project directory make plugin entry.
const plugins = [
{
key: '<name_of_plugin_folder>',
metadataFile: './<name_of_plugin_folder>/plugin-metadata',
},
]
- Create prod built using
npm run built:prod
. (For creating built for bank.gluu.org runnpm run build:bank
) - Copy the built from
dist
folder to<path_of_admin_ui_built_path_deployed_on_apache>
(eg: /var/www/html/admin/frontend)
- In cloned
admin-ui
project directory remove the plugin toplugins
directory. - In
plugins.config.js
file of clonedadmin-ui
project directory remove the plugin entry. - Create prod built using
npm run built:prod
. (For creating built for bank.gluu.org runnpm run build:bank
) - Copy the built from
dist
folder to<path_of_admin_ui_built_path_deployed_on_apache>
(eg: /var/www/html/admin/frontend)
- Home
-
admin-ui documentation
- Introduction
- Dashboard
- Admin Menu
- Auth Server Menu
- Admin UI Installation on bank server
- CLI commands to Add, Remove Frontend Plugins
- Developer localization guide
- Gluu Admin UI: Frontend Plugin development document
- Gluu Admin UI: Backend Plugin development document
- Gluu Cloud Admin UI: Application Architecture
- Internationalization in Gluu Admin UI
- Jans Admin UI Developers setup Guide
- Jans Config Api Role Mapping
- licenseSpring Integration in Admin UI
- License Policy
- Admin UI: Scopes
- Security and API protection token
- User Management
- Gluu Flex
- Support Portal