Skip to content

/AWS1/IF_WSW=>UPDATEIDENTITYPROVIDER()

About UpdateIdentityProvider

Updates the identity provider.

Method Signature

IMPORTING

Required arguments:

iv_identityproviderarn TYPE /AWS1/WSWSUBRESOURCEARN /AWS1/WSWSUBRESOURCEARN

The ARN of the identity provider.

Optional arguments:

iv_identityprovidername TYPE /AWS1/WSWIDENTITYPROVIDERNAME /AWS1/WSWIDENTITYPROVIDERNAME

The name of the identity provider.

iv_identityprovidertype TYPE /AWS1/WSWIDENTITYPROVIDERTYPE /AWS1/WSWIDENTITYPROVIDERTYPE

The type of the identity provider.

it_identityproviderdetails TYPE /AWS1/CL_WSWIDPVDRDETAILS_W=>TT_IDENTITYPROVIDERDETAILS TT_IDENTITYPROVIDERDETAILS

The details of the identity provider. The following list describes the provider detail keys for each identity provider type.

  • For Google and Login with Amazon:

    • client_id

    • client_secret

    • authorize_scopes

  • For Facebook:

    • client_id

    • client_secret

    • authorize_scopes

    • api_version

  • For Sign in with Apple:

    • client_id

    • team_id

    • key_id

    • private_key

    • authorize_scopes

  • For OIDC providers:

    • client_id

    • client_secret

    • attributes_request_method

    • oidc_issuer

    • authorize_scopes

    • authorize_url if not available from discovery URL specified by oidc_issuer key

    • token_url if not available from discovery URL specified by oidc_issuer key

    • attributes_url if not available from discovery URL specified by oidc_issuer key

    • jwks_uri if not available from discovery URL specified by oidc_issuer key

  • For SAML providers:

    • MetadataFile OR MetadataURL

    • IDPSignout (boolean) optional

    • IDPInit (boolean) optional

    • RequestSigningAlgorithm (string) optional - Only accepts rsa-sha256

    • EncryptedResponses (boolean) optional

iv_clienttoken TYPE /AWS1/WSWCLIENTTOKEN /AWS1/WSWCLIENTTOKEN

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token return the result from the original successful request.

If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.

RETURNING

oo_output TYPE REF TO /aws1/cl_wswupdateidpvdrrsp /AWS1/CL_WSWUPDATEIDPVDRRSP

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_wsw~updateidentityprovider(
  it_identityproviderdetails = VALUE /aws1/cl_wswidpvdrdetails_w=>tt_identityproviderdetails(
    (
      VALUE /aws1/cl_wswidpvdrdetails_w=>ts_identitypvdrdetails_maprow(
        key = |string|
        value = new /aws1/cl_wswidpvdrdetails_w( |string| )
      )
    )
  )
  iv_clienttoken = |string|
  iv_identityproviderarn = |string|
  iv_identityprovidername = |string|
  iv_identityprovidertype = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_identityprovider = lo_result->get_identityprovider( ).
  IF lo_identityprovider IS NOT INITIAL.
    lv_subresourcearn = lo_identityprovider->get_identityproviderarn( ).
    lv_identityprovidername = lo_identityprovider->get_identityprovidername( ).
    lv_identityprovidertype = lo_identityprovider->get_identityprovidertype( ).
    LOOP AT lo_identityprovider->get_identityproviderdetails( ) into ls_row.
      lv_key = ls_row-key.
      lo_value = ls_row-value.
      IF lo_value IS NOT INITIAL.
        lv_stringtype = lo_value->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.