registerClient

Registers a public client with IAM Identity Center. This allows clients to perform authorization using the authorization code grant with Proof Key for Code Exchange (PKCE) or the device code grant.

Samples


fun main() { 
   //sampleStart 
   val resp = ssoOidcClient.registerClient {
    clientName = "My IDE Plugin"
    clientType = "public"
    scopes = listOf<String>(
        "sso:account:access",
        "codewhisperer:completions"
    )
    redirectUris = listOf<String>(
        "127.0.0.1:PORT/oauth/callback"
    )
    grantTypes = listOf<String>(
        "authorization_code",
        "refresh_token"
    )
    issuerUrl = "https://identitycenter.amazonaws.com/ssoins-1111111111111111"
    entitledApplicationArn = "arn:aws:sso::ACCOUNTID:application/ssoins-1111111111111111/apl-1111111111111111"
} 
   //sampleEnd
}