@@ -22,6 +22,7 @@ public extension IDKit {
2222 let responseType : String
2323 var additionalParameters : [ String : String ] ?
2424
25+ /// Creates an instance of `OIDConfiguration` with the specified values
2526 public init ( authorizationEndpoint: String ,
2627 tokenEndpoint: String ,
2728 userEndpoint: String ? = nil ,
@@ -44,6 +45,14 @@ public extension IDKit {
4445 self . additionalParameters = additionalParameters
4546 }
4647
48+ /**
49+ Appends additional parameters to the existing OID configuration.
50+
51+ Make sure the PACECloudSDK has already been set up via `PACECloudSDK.shared.setup()`
52+ before calling this method.
53+
54+ - parameter parameters: The additional parameters.
55+ */
4756 public static func appendAdditionalParameters( _ parameters: [ String : String ] ) {
4857 let currentParams = shared? . configuration. additionalParameters ?? [ : ]
4958
@@ -52,7 +61,13 @@ public extension IDKit {
5261 shared? . configuration. additionalParameters = currentParams. merging ( parameters, uniquingKeysWith: { $1 } )
5362 }
5463
55- static func defaultOIDConfiguration( clientId: String , redirectUri: String , idpHint: String ? ) -> OIDConfiguration {
64+ /**
65+ Creates a default OID Configuration with all endpoints pointing to PACE ID.
66+ - parameter clientId: The client id of the OID configuration.
67+ - parameter redirectUri: The redirect uri of the OID configuration.
68+ - parameter idpHint: The IDP hint of the OID configuration. Defaults to `nil`.
69+ */
70+ public static func defaultOIDConfiguration( clientId: String , redirectUri: String , idpHint: String ? = nil ) -> OIDConfiguration {
5671 var additionalParameters : [ String : String ] ?
5772
5873 if let idpHint = idpHint {
0 commit comments