-
Notifications
You must be signed in to change notification settings - Fork 3
Added on-prem IDM Deployment type #21
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
10d8ec8
842addf
c756f58
706ffc6
de6b8e5
b0ff7e5
f214452
c6dda67
cb11e18
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,9 @@ | ||
| import util from 'util'; | ||
|
|
||
| import { State } from '../shared/State'; | ||
| import { debugMessage } from '../utils/Console'; | ||
| import { getRealmPath } from '../utils/ForgeRockUtils'; | ||
| import { generateAmApi } from './BaseApi'; | ||
| import { generateAmApi, generateIdmApi } from './BaseApi'; | ||
|
|
||
| const authenticateUrlTemplate = '%s/json%s/authenticate'; | ||
| const authenticateWithServiceUrlTemplate = `${authenticateUrlTemplate}?authIndexType=service&authIndexValue=%s`; | ||
|
|
@@ -73,3 +74,34 @@ export async function step({ | |
| }).post(urlString, body, config); | ||
| return data; | ||
| } | ||
|
|
||
| /** | ||
| * | ||
| * @param {any} body POST request body | ||
| * @param {any} config request config | ||
| * @param {string} realm realm | ||
| * @param {string} service name of authentication service/journey | ||
| * @returns Promise resolving to the authentication service response | ||
| */ | ||
| export async function stepIdm({ | ||
|
||
| body = {}, | ||
| config = {}, | ||
|
|
||
| state, | ||
| }: { | ||
| body?: object; | ||
| config?: object; | ||
| realm?: string; | ||
| service?: string; | ||
| state: State; | ||
| }): Promise<any> { | ||
| debugMessage({ | ||
| message: `AuthenticateApi.stepIdm: function start `, | ||
| state, | ||
| }); | ||
| const urlString = `${state.getHost()}/authentication?_action=login`; | ||
| const response = await generateIdmApi({ | ||
| state, | ||
| }).post(urlString, body, config); | ||
| return response; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.