AWS Security ChangesHomeSearch

AWS cognito documentation change

Service: cognito · 2025-04-16 · Documentation low

File: cognito/latest/developerguide/open-id.md

Summary

Removed iOS Swift, Unity, and Xamarin SDK examples from OIDC documentation

Security assessment

Simplifies documentation by removing outdated SDK examples without security implications

Diff

diff --git a/cognito/latest/developerguide/open-id.md b/cognito/latest/developerguide/open-id.md
index f3fb5b876..1ad94e9f1 100644
--- a//cognito/latest/developerguide/open-id.md
+++ b//cognito/latest/developerguide/open-id.md
@@ -5 +5 @@
-AndroidiOS - Objective-CiOS - SwiftJavaScriptUnityXamarin
+AndroidiOS - Objective-CJavaScript
@@ -97,33 +96,0 @@ The website [jwt.io](http://jwt.io/) is a valuable resource that you can use to
-## iOS - Swift
-
-To provide the OIDC ID token to Amazon Cognito, implement the `AWSIdentityProviderManager` protocol.
-
-When you implement the `logins` method, return a dictionary that contains the OIDC provider name that you configured. This dictionary acts as the key, and the current ID token from the authenticated user acts as the value, as shown in the following code example.
-    
-    
-    class OIDCProvider: NSObject, AWSIdentityProviderManager {
-        func logins() -> AWSTask<NSDictionary> {
-            let completion = AWSTaskCompletionSource<NSString>()
-            getToken(tokenCompletion: completion)
-            return completion.task.continueOnSuccessWith { (task) -> AWSTask<NSDictionary>? in
-                //login.provider.name is the name of the OIDC provider as setup in the Amazon Cognito console
-                return AWSTask(result:["login.provider.name":task.result!])
-            } as! AWSTask<NSDictionary>
-    
-        }
-    
-        func getToken(tokenCompletion: AWSTaskCompletionSource<NSString>) -> Void {
-            //get a valid oidc token from your server, or if you have one that hasn't expired cached, return it
-    
-            //TODO code to get token from your server
-            //...
-    
-            //if error getting token, set error appropriately
-            tokenCompletion.set(error:NSError(domain: "OIDC Login", code: -1 , userInfo: ["Unable to get OIDC token" : "Details about your error"]))
-            //else
-            tokenCompletion.set(result:"result from server id token")
-        }
-    }
-
-When you instantiate the `AWSCognitoCredentialsProvider`, pass the class that implements AWSIdentityProviderManager as the value of identityProviderManager in the constructor. For more information, go to the [AWSCognitoCredentialsProvider](https://github.com/aws-amplify/aws-sdk-ios) reference page and choose [initWithRegionType:identityPoolId:identityProviderManager](https://github.com/aws-amplify/aws-sdk-ios).
-
@@ -140,10 +106,0 @@ When you instantiate the `AWSCognitoCredentialsProvider`, pass the class that im
-## Unity
-    
-    
-    credentials.AddLogin("login.provider.com", token);
-
-## Xamarin
-    
-    
-    credentials.AddLogin("login.provider.com", token);
-