/AWS1/CL_VPS=>GETIDENTITYSOURCE()
¶
About GetIdentitySource¶
Retrieves the details about the specified identity source.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_policystoreid
TYPE /AWS1/VPSPOLICYSTOREID
/AWS1/VPSPOLICYSTOREID
¶
Specifies the ID of the policy store that contains the identity source you want information about.
iv_identitysourceid
TYPE /AWS1/VPSIDENTITYSOURCEID
/AWS1/VPSIDENTITYSOURCEID
¶
Specifies the ID of the identity source you want information about.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_vpsgetidsourceoutput
/AWS1/CL_VPSGETIDSOURCEOUTPUT
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->/aws1/if_vps~getidentitysource(
iv_identitysourceid = |string|
iv_policystoreid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_timestampformat = lo_result->get_createddate( ).
lo_identitysourcedetails = lo_result->get_details( ).
IF lo_identitysourcedetails IS NOT INITIAL.
LOOP AT lo_identitysourcedetails->get_clientids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_clientid = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_userpoolarn = lo_identitysourcedetails->get_userpoolarn( ).
lv_discoveryurl = lo_identitysourcedetails->get_discoveryurl( ).
lv_openidissuer = lo_identitysourcedetails->get_openidissuer( ).
ENDIF.
lv_identitysourceid = lo_result->get_identitysourceid( ).
lv_timestampformat = lo_result->get_lastupdateddate( ).
lv_policystoreid = lo_result->get_policystoreid( ).
lv_principalentitytype = lo_result->get_principalentitytype( ).
lo_configurationdetail = lo_result->get_configuration( ).
IF lo_configurationdetail IS NOT INITIAL.
lo_cognitouserpoolconfigur = lo_configurationdetail->get_cognitouserpoolconf( ).
IF lo_cognitouserpoolconfigur IS NOT INITIAL.
lv_userpoolarn = lo_cognitouserpoolconfigur->get_userpoolarn( ).
LOOP AT lo_cognitouserpoolconfigur->get_clientids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_clientid = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_issuer = lo_cognitouserpoolconfigur->get_issuer( ).
lo_cognitogroupconfigurati = lo_cognitouserpoolconfigur->get_groupconfiguration( ).
IF lo_cognitogroupconfigurati IS NOT INITIAL.
lv_groupentitytype = lo_cognitogroupconfigurati->get_groupentitytype( ).
ENDIF.
ENDIF.
lo_openidconnectconfigurat = lo_configurationdetail->get_openidconnectconf( ).
IF lo_openidconnectconfigurat IS NOT INITIAL.
lv_issuer = lo_openidconnectconfigurat->get_issuer( ).
lv_entityidprefix = lo_openidconnectconfigurat->get_entityidprefix( ).
lo_openidconnectgroupconfi = lo_openidconnectconfigurat->get_groupconfiguration( ).
IF lo_openidconnectgroupconfi IS NOT INITIAL.
lv_claim = lo_openidconnectgroupconfi->get_groupclaim( ).
lv_groupentitytype = lo_openidconnectgroupconfi->get_groupentitytype( ).
ENDIF.
lo_openidconnecttokenselec = lo_openidconnectconfigurat->get_tokenselection( ).
IF lo_openidconnecttokenselec IS NOT INITIAL.
lo_openidconnectaccesstoke = lo_openidconnecttokenselec->get_accesstokenonly( ).
IF lo_openidconnectaccesstoke IS NOT INITIAL.
lv_claim = lo_openidconnectaccesstoke->get_principalidclaim( ).
LOOP AT lo_openidconnectaccesstoke->get_audiences( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_audience = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_openidconnectidentityto = lo_openidconnecttokenselec->get_identitytokenonly( ).
IF lo_openidconnectidentityto IS NOT INITIAL.
lv_claim = lo_openidconnectidentityto->get_principalidclaim( ).
LOOP AT lo_openidconnectidentityto->get_clientids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_clientid = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
To retrieve details about an identity source¶
The following example retrieves the details for the specified identity source.
DATA(lo_result) = lo_client->/aws1/if_vps~getidentitysource(
iv_identitysourceid = |ISEXAMPLEabcdefg111111|
iv_policystoreid = |C7v5xMplfFH3i3e4Jrzb1a|
).