feat: changes in admin-ui plugin to allow agama-developer-studio to use its OAuth2 apis #3085 #3298
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.
ToDos:
Currently, the admin-ui plugin read the oidc client details from
auiConfiguration.properties
(placed on the server). this file contains op_host, client_id, client_secret, acrs_values, authz_endpoint, etc of oidc clients used for authentication and token generation. We will now store this information in the database (LDAP. MySQL etc..) in admin-ui configuration and removeauiConfiguration.properties
. The plugin will read the information from DB.The agama-developer-studio configuration will be created in the database containing ADS oidc client details.
We will add the ability to the admin-ui plugin so that agama-developer-studio can use its following APIs.
appType:
admin-ui
,agama-developer-studio
.API
:/app/{appType}/oauth2/config
-- To get ADS client configuration.API
:/app/{appType}/oauth2/access-token
-- To generate access_token to get user-infoAPI
:/app/{appType}/oauth2/user-info
-- To get user-infoAPI
:/app/{appType}/oauth2/api-protection-token
-- To generate api-protection-token containing required scopes to access confg-api endpoints.closes #3085