CreateIDProvider
In this article:
CreateIDProvider#
Description#
Creates a new identity provider.
Request Parameters#
AuthUrl — Auth URL.
Type: String
Required: Yes
ClientId — The customer ID.
Type: String
Required: Yes
ClientSecret — The client secret.
Type: String
Required: Yes
IDProviderName — The name of the identity provider.
Type: String
Required: Yes
LogoutUrl — Logout URL.
Type: String
Required: Yes
TokenUrl — Token URL.
Type: String
Required: Yes
Response Elements#
IDProvider — Information about the new identity provider.
Type: IDProvider object
Examples#
Request
https://iam.k2.cloud/?Action=CreateIDProvider
&IDProviderName=company
&ClientId=571e1ba4-608b-4cf6-90a5-720c9a0b316c
&ClientSecret=eNGt8a7K1Fr594I8qN9gu_wflsQ
&AuthUrl=https://example.com/authorize
&LogoutUrl=https://example.com/logout
&TokenUrl=https://example.com/token
Response
<CreateIDProviderResponse>
<CreateIDProviderResult>
<IDProvider>
<IDProviderArn>arn:c2:iam::c2dev:id-provider/company</IDProviderArn>
<IDProviderId>3f9e842c-11ee-4430-898f-29b91be64f2a</IDProviderId>
<IDProviderName>company</IDProviderName>
<CreateDate>1730892408</CreateDate>
<UpdateDate>1730892408</UpdateDate>
<ClientId>571e1ba4-608b-4cf6-90a5-720c9a0b316c</ClientId>
<AuthUrl>https://adserver.sp.com/adfs/oauth2/authorize</AuthUrl>
<LogoutUrl>https://adserver.sp.com/adfs/oauth2/logout</LogoutUrl>
<TokenUrl>https://adserver.sp.com/adfs/oauth2/token</TokenUrl>
<LoginPage>https://company.idp.k2.cloud</LoginPage>
</IDProvider>
</CreateIDProviderResult>
<requestId>c27f1b52-b526-4b2a-8b82-e2618c7bc510</requestId>
<ResponseMetadata>
<RequestId>c27f1b52-b526-4b2a-8b82-e2618c7bc510</RequestId>
</ResponseMetadata>
</CreateIDProviderResponse>
c2-iam CreateIDProvider IDProviderName company ClientId client-id ClientSecret secret-key AuthUrl https://example.com/auth LogoutUrl https://example.com/logout TokenUrl https://example.com/token