Firstly, create a new file called oidc-sp-config.xml
in the <IS_HOME>/repository/conf/identity/
directory.
In the oidc-sp-config.xml
file, add the following configuration:
<OAuth>
<OpenIDConnect>
<ServiceProviders>
<ServiceProvider>
<ClientId>[client_id]</ClientId>
<ClientSecret>[client_secret]</ClientSecret>
<CallBackURL>[callback_url]</CallBackURL>
<Name>[name]</Name>
<AuthorizeEndpoint>[authorize_endpoint]</AuthorizeEndpoint>
<TokenEndpoint>[token_endpoint]</TokenEndpoint>
<UserInfoEndpoint>[user_info_endpoint]</UserInfoEndpoint>
<JWKSEndpoint>[jwks_endpoint]</JWKSEndpoint>
<LogOutEndpoint>[logout_endpoint]</LogOutEndpoint>
</ServiceProvider>
</ServiceProviders>
</OpenIDConnect>
</OAuth>
Replace the values in the configuration with the relevant details for your OAuth/OpenID Connect service provider.
Save the oidc-sp-config.xml
file and restart the WSO2 Identity Server.
Once the server has restarted, the OAuth/OpenID Connect service provider should be available for use.
Asked: 2022-02-13 11:00:00 +0000
Seen: 7 times
Last updated: Nov 06 '21